Web Component: j-QRCode
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
- Peter Širka petersirka@gmail.com
- License
Created
30. march 2023
Updated
not updated
jComponent library
19, 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com