Web Component wrapper for generating QR Codes, using qrjs lib.
Maintained by Eduard C..
-
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130905/polymer.min.js"></script>
-
Import Custom Element:
<link rel="import" href="src/qr-code.html">
-
Import qrjs lib:
<script src="src/qr.js"></script>
-
Start using it!
<qr-code data="hello world!"></qr-code>
Attribute | Options | Default | Description |
---|---|---|---|
data |
string | undefined |
The information encoded by the QR code |
format |
png , html |
png |
Format of the QR code rendered inside the component. |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- v0.0.1 September 18, 2013
- Started project using boilerplate-element