# j-EAN13

> The component will draw EAN-13 barcode according to the path value.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 7bb7ca516a0a30faab2507d745c8eda850e5cc9d44bbdefd8ea952ceed3bf4e1
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

The component will draw EAN-13 barcode according to the path value.

- Included <https://github.com/joushx/jQuery.EAN13> library (Johannes Mittendorfer, MIT license)

---

__Configuration__:

- `width {Number}` barcode width, height is automatically calculated (default: `200`)
- `padright {Boolean}`if `true`, it fills the value `0` from the right side and `false` from the left side

Use it with `<ui-component name="ean13">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="EAN13" path="eancode"></ui-component>

<script>
	var eancode = '1234567890123';
</script>
```
