[IMP] web_widget_progressbar_gradient: Add inverse option

Allows to reverse the gradient rendering
This commit is contained in:
Denis Roussel
2024-11-14 17:49:12 +01:00
parent d09b4aabb8
commit 966916a408
10 changed files with 65 additions and 8 deletions

View File

@@ -1,2 +1,3 @@
- Denis Roussel <denis.roussel@acsone.eu>
- Jacques-Etienne Baudoux <je@bcim.be>
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>

View File

@@ -2,4 +2,10 @@ This module allows to display progress bars with colorized gradient bar.
The color will increase following value from green passing per yellow
and finishing to red.
- Normal rendering:
![Progressbar Gradient](../static/description/progressbar_gradient.png)
- Reverse rendering:
![Progressbar Inverse Gradient](../static/description/progressbar_gradient_inverse.png)

View File

@@ -1 +1,3 @@
- When declaring a progressbar field, use the 'progressbar_color' widget.
- Add the inverse option to reverse the colors on the progress bar field:
``options="{'inverse': true}"``