Thanks to visit codestin.com
Credit goes to github.com

Skip to content

girliemac/x-barcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<x-barcode>

Web Component wrapper for UPC-A (for now) barcode using Polymer 1.x.

Maintained by Tomomi Imura.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="bower_components/webcomponentsjs/webcomponentsjs.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/x-barcode.html">
  3. Start using it!

    <x-barcodet></x-barcode>

Setup

In order to run it locally you'll need a basic server setup.

  1. Install NodeJS.

  2. Install GruntJS:

    $ [sudo] npm install -g grunt-cli
  3. Install local dependencies:

    $ npm install
  4. Run a local server and open http://localhost:8000.

    $ grunt connect

Options

Attribute Options Default Description
code int 00000000000 The first 11 disit of UPC-A code. The last digit (check sum) will be calculated.
color string black Color name or hex.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

For detailed changelog, check Releases.

License

MIT License

Yay, it works!

scanning the barcode

About

Web Component wrapper for UPC-A (for now) barcode using Polymer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •