- Notifications
You must be signed in to change notification settings - Fork24
Barcode generator for Vue.js
License
NotificationsYou must be signed in to change notification settings
lindell/vue-barcode
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Add barcodes to your Vue application super easily with VueBarcode!Try it out!
Supported barcode formats:CODE128EANEAN-13EAN-8EAN-5EAN-2UPC (A)CODE39ITF-14MSIPharmacodeCodabar
It is a light wrapper for theJsBarcode barcode library.
npm install vue-barcodeimportVueBarcodefrom'vue-barcode';newVue({components:{'barcode':VueBarcode}})
<barcodevalue="value-to-render"format="barcode-format"...moreoptions> Show this if the rendering fails.</barcode>
Simple example with input binding.Try it out with this JsFiddle!
<divid="app"><inputv-model="barcodeValue"/><br><barcodev-bind:value="barcodeValue"> Show this if the rendering fails.</barcode></div>
importVueBarcodefrom'vue-barcode';varapp=newVue({el:'#app',data:{barcodeValue:'test',},components:{'barcode':VueBarcode}})
All options:
formatwidthheighttextfont-optionsfonttext-aligntext-positiontext-marginfont-sizebackgroundlineColormarginmargin-topmargin-bottommargin-leftmargin-rightdisplay-valueean128
For more information, see theJsBarcode documentation.
About
Barcode generator for Vue.js
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors6
Uh oh!
There was an error while loading.Please reload this page.