Coder Social home page Coder Social logo

nullvoxpopuli / ember-cli-barcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxwondercorn/ember-cli-barcode

0.0 2.0 0.0 2.18 MB

Ember addon to generate barcodes using the JSBarcode library

License: MIT License

JavaScript 76.39% HTML 22.75% CSS 0.86%

ember-cli-barcode's Introduction

Latest NPM release TravisCI Build Status License Dependencies Dev Dependencies Ember Observer Score

ember-cli-barcode

A ember-cli addon to render barcodes using the JsBarcode library. See the demo to experiment with many of the barcode options.

The addon adds accessibility attributes and elements to the generated barcodes. See the Accessibility section below.

Compatibility

  • Ember.js v2.4 or above
  • Ember CLI v2.13 or above

Installation

  $ ember install ember-cli-barcode

By default all barcode types are added to your app. See the build configuration section for slimming your build

Simple Usage

The simplest form to render a barcode is to pass in a value and the default options will generate a CODE128 barcode:

<BarCode @value="abc123456" />

which renders:

alt text

All examples use angle bracket invocation available in Ember 3.4+. The example above using classic component invocation would be:

{{bar-code value="abc123456"}}

By default, barcodes are rendered using the svg element. The element can be changed to img or canvas using the tagName property:

<BarCode
  @value="A45689"
  @tagName="img"
/>

<BarCode
  value="A45689"
  tagName="canvas"
/>

Use the img tag if you want the ability to right-click copy or save the displayed barcode.

See the Options readme for detailed barcode options.

See the Contributing guide for details.

ember-cli-barcode's People

Contributors

christopher-noq avatar donaldwasserman avatar ember-tomster avatar maxwondercorn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.