Documentation
Getting Started
jqxQRcode represents a widget which displays QR codes and has API to validate, export and customize them.Every UI widget from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.
The first step is to create html page and add links to the JavaScript files and CSS dependencies to your project. The jqxQRcode widget requires the following files:
<head><link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css"/><script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script><script type="text/javascript" src="../../jqwidgets/jqxqrcode.js"></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-2FX5PV9DNT"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-2FX5PV9DNT');</script></head>
The next step is to create html element within the body of the html document.
<div id='jqxQRcode'></div>
The last step is to initialize the widget by adding the following script to the html document:
<script type="text/javascript"> window.onload = () => { const QRcode = new jqxQRcode("#jqxQRcode", { value: 'example' }); }</script>
To call a function (method), you need to pass the method name and parameters (if any) in the jqxQRcode's constructor.
$("#jqxQRcode").jqxQRcode('isValid');
$("#jqxQRcode").jqxQRcode({ value: 'example' });
var value = $("#jqxQRcode").jqxQRcode('value');