APIs

Show:

Constructor

QRCode

(
  • el
  • vOption
)

Parameters:

  • el HTMLElement | String

    target element or 'id' attribute of element.

  • vOption Object | String
    • text String

      QRCode link data

    • [width=256] Number optional
    • [height=256] Number optional
    • [colorDark="#000000"] String optional
    • [colorLight="#ffffff"] String optional
    • [correctLevel=QRCode.CorrectLevel.H] QRCode.CorrectLevel optional

      [L|M|Q|H]

Example:

new QRCode(document.getElementById("test"), "http://jindo.dev.naver.com/collie");

var oQRCode = new QRCode("test", { text : "http://naver.com", width : 128, height : 128 });

oQRCode.clear(); // Clear the QRCode. oQRCode.makeCode("http://map.naver.com"); // Re-create the QRCode.

Item Index