qrcodejs-dojo-widget

David Shims qrcodejs dressed up like a dojo widget


License
MIT
Install
bower install qrcodejs-dojo-widget

Documentation

QRCode.js dojo'd

https://github.com/davidshimjs/qrcodejs forked and wrapped up like a dojo widget. Optimized for cut and paste!

Declarative

<div data-dojo-type="qrcodejs/qrcode" text="14wyKDQWiBjvnVp4XB5WyNAYXR4WNs9cxQ" width="128" height="128" colorDark="#000" colorLight="#fff"></div>

Programmatic

require([
  "qrcodejs/qrcode",
  "dojo/dom",
  "dojo/parser",
  "dojo/domReady!"
], function(QRCode, dom, Parser) {

  var qrc = new QRCode({
    text: "14wyKDQWiBjvnVp4XB5WyNAYXR4WNs9cxQ", //do it properly fund
    width: 128,
    height: 128,
    colorDark: "#C00",
    colorLight: "#FFF"
  }, dom.byId('programmatic-qrcode'));

  //qrc.clear();
  //qrc.makeCode("new data");

});

License

MIT License

Thanks

David Shim! @davidshimjs