2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-27 21:26:43 +00:00

Mention python-barcode parameter adding capabilities (#314)

This commit is contained in:
Miklós Márton 2022-07-21 00:15:46 +02:00 committed by GitHub
parent a85cb64cc6
commit 0a3f6a45cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,17 @@ The default barcode renderer will generate a barcode using [Code128](https://en.
{% endraw %}
```
You can also pass further [python-barcode](https://python-barcode.readthedocs.io/en/stable/writers.html#common-writer-options) supported parameters as well:
```html
{% raw %}
{% load barcode %}
<img class='barcode' src='{% barcode part.IPN barcode_class="Code128" write_text=0 background="red" %}'>
{% endraw %}
```
### QR-Code
!!! info "qrcode"