JsBarcode icon indicating copy to clipboard operation
JsBarcode copied to clipboard

codabar cannot be initiated via options in the HTML element

Open aidar87 opened this issue 2 years ago • 2 comments

Hi, I tried to init using options in the HTML element:

<svg class="barcode"
  jsbarcode-format="codabar"
  jsbarcode-value="123456789012"
  jsbarcode-textmargin="0"
  jsbarcode-fontoptions="bold">
</svg>

And then initialize it with:
JsBarcode(".barcode").init();

But I get the following error:
Uncaught TypeError: e is not a constructor

Could you assist please?
P.S.
It work's fine with <svg id="barcode3"></svg>
 and JsBarcode("#barcode3", "1234", {
  format: "codabar"
});

aidar87 avatar Jan 25 '22 08:01 aidar87