Playbasis Vendors - QRCode Generator
Methods
-
<static> generate(targetContainer, text, options)
-
Generate QRcode from specified text, and return it as img HTML tag string.
Parameters:
Name Type Description targetContainerString Target container as element id name i.e. "container" to add a result generated QR code as a child img HTML element.
textObject Text data to add into generated qrcode
optionsObject (optional) option as Object.
It can include
{
size: String = 'small' | 'medium' | 'large'. Default is 'medium'.
type: Number = 1-40 It affects the pattern of QR code. Default is 4.
error_correction_level: String = 'L', 'M', 'Q', 'H'. Error correction level relates to how well QR code can restore data in case of damaged or dirty. Please refer here for more information. In most case, you don't need to modify this value. Default is 'L'.
}