Web Component: j-QRCode


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-QRCode

This component creates a QR code. It includes the QRCode library.

  • jComponent v19|v20

Configuration:

  • width {Number} a default image width (default: 128)
  • height {Number} a default image height (default: 128)
  • fg {String} a foreground color (default: #000000)
  • bg {String} a background color (default: #FFFFFF)
  • delay {Number} a small delay for code generating (default: 200)

How to generate QR Code?

var opt = {};
opt.text = 'https://www.totaljs.com';
// opt.width {Number}
// opt.height {Number}
// opt.fg {String}
// opt.bg {String}
opt.callback = function(base64) {
    console.log(base64);
};
SETTER('qrcode/create', opt);

Author