1.0.1 • Published 6 years ago

blox-qrcode v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

\<blox-qrcode>

Build Status

Generates a qr code from a given string

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Install blox-qrcode

$ npm install blox-qrcode

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Import

$ import 'blox-qrcode';
<blox-qrcode
    data="make me into a qr code"
    src="{{src}}"
    error="{{error}}">
</blox-qrcode>

Javascript Use

<blox-qrcode id="bloxQrcode"></blox-qrcode>
<script>
    this.$.bloxQrcode.make('make me into a qr code')
    .then((src) => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>
1.0.1

6 years ago

1.0.0

6 years ago