setOptions

Sets new options to the QRCode and redraws it.

Parameters

options Object

An object with the new options. All configuration options can be set.

Example

<div id="qrCode"></div>
<script>
  $("#qrCode").kendoQRCode({
    value: "mailto:clientservice@telerik.com",
  });

  var qrCode = $("#qrCode").data("kendoQRCode");
  qrCode.setOptions({
    errorCorrection: "H",
    size: 200,
    background: "#FFB821",
    border: {
      width: 5,
      color: "#FF7D05"
    }
  });
</script>
In this article