lindell / lindell/JsBarcode

Adding flat option to EAN13 format not working when define the value option in the HTML element

Open
#138 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Adding flat option to EAN13 format not working when define the value option in the HTML element.

```html



Barcode1:



Barcode2:



Barcode3:



Barcode4:

JsBarcode("#barcode1", "012345678901", {
format: "ean13",
flat: true
});
JsBarcode(".barcode").init();

```
![screen shot 2017-03-31 at 4 31 51 pm](https://cloud.githubusercontent.com/assets/5489067/24572667/a52aa458-162f-11e7-82f7-1eb979090678.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the four HTML examples with JsBarcode.all.js and the JsBarcode(".barcode").init() entry point, comparing the inline flat and jsbarcode-flat attributes when jsbarcode-value is provided. Trace how those attributes are read and confirm that the EAN13 barcode renders with the flat option in the HTML-driven cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.