Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Suggestion: add mixed mode initiation sample #304

Open
zorgoz opened this issue Sep 2, 2019 · 0 comments
Open

Suggestion: add mixed mode initiation sample #304

zorgoz opened this issue Sep 2, 2019 · 0 comments

Comments

@zorgoz
Copy link

zorgoz commented Sep 2, 2019

As there is the long-time open issue #138 that does not enable flat to be specified as HTML attribute, and just not to repeat the same attributes on many elements, I wanted to initialize JSBarcode with mixed-mode: the value as an attribute, anything else during initiation. As I haven't found any sample on how to do that, I have begone to experiment. And here it is

<svg class="barcode" jsbarcode-value="123456789012"></svg>
JsBarcode('.barcode').options({
  format:'ean13', 
  height:25, 
  displayValue: false,
  flat:true
  // and so on
  }).init()
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant