redraw
Redraws the QR code using the current value and options.
The
setOptions
method sets new options to the QRCode and redraws it att he same time. Callingredraw()
int his case is not necessary.
Example - set background property and redraw QRCode
<div id="qrCode"></div>
<script>
$("#qrCode").kendoQRCode({
value: "mailto:clientservice@telerik.com",
});
var qrCode = $("#qrCode").data("kendoQRCode");
qrCode.options.background="#FFB821"
qrCode.redraw();
</script>
In this article