Skip to content

ghostoy/a-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

<a-qrcode>

A QRCode generator based on Polymer and davidshimjs/qrcodejs library

Maintained by Cong Liu.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20131107/polymer.min.js"></script>
  2. Import Custom Element:

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

    <a-qrcode code="Fill your code"></a-qrcode>

Options

Attribute Options Default Description
code string "" The code to be displayed as QRCode
width int 128 Width of the QRCode
height int 128 Height of the QRCode

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

License

MIT License

About

QRCode generator for Polymer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published