2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-13 18:55:26 +00:00

Additional barcode docs (#407)

This commit is contained in:
Oliver
2022-12-22 21:44:44 +11:00
committed by GitHub
parent 447096be35
commit a26649a3e9

View File

@ -73,3 +73,14 @@ To render a QR code, use the `qrcode` template tag:
<img class='custom_qr_class' src='{% qrcode "Hello world!" %}'>
{% endraw %}
```
Additional parameters can be passed to the `qrcode` function for rendering:
```html
{% raw %}
<img class='custom_qr_class' src='{% qrcode "Hello world!" fill_color="green" back_color="blue" %}'>
{% endraw %}
```
!!! tip "Documentation"
Refer to the [qrcode library documentation](https://pypi.org/project/qrcode/) for more information