JsBarcode
JsBarcode copied to clipboard
Adding flat option to EAN13 format not working when define the value option in the HTML element
Adding flat option to EAN13 format not working when define the value option in the HTML element.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<br />Barcode1:
<svg id="barcode1"></svg>
<br /><br />Barcode2:
<svg class="barcode" jsbarcode-format="EAN13" jsbarcode-flat=true jsbarcode-value="012345678902"></svg>
<br /><br />Barcode3:
<svg class="barcode" jsbarcode-format="EAN13" flat=true jsbarcode-value="012345678903"></svg>
<br /><br />Barcode4:
<svg class="barcode" jsbarcode-format="EAN13" jsbarcode-flat="true" jsbarcode-value="012345678904"></svg>
</body>
<script src="JsBarcode.all.js"> </script>
<script>
JsBarcode("#barcode1", "012345678901", {
format: "ean13",
flat: true
});
JsBarcode(".barcode").init();
</script>
</html>
I will fix this.
Currently I have to manually add the property to work for HTML rendering which seems not to be done for EAN13´s flat option.
This will be fixed with https://github.com/lindell/JsBarcode/pull/107. But I want to wait for some other backwards compatibility breaking change to merge this in (and increase the version to 4). But I might do this earlier than previously thought.
Thanks!
Any change on this?