mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_widget_numeric_step: Better CSS and supports mobile layouts
This commit is contained in:
committed by
Thanakrit Pintana
parent
aa9dd2716d
commit
6c6566078a
@@ -1,3 +1,7 @@
|
||||
* `GRAP <http://www.grap.coop>`_:
|
||||
|
||||
* Quentin DUPONT <quentin.dupont@grap.coop>
|
||||
|
||||
* `Tecnativa <https://www.tecnativa.com/>`_:
|
||||
|
||||
* Alexandre Díaz
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
This widget changes input number field and make it easier to incremente the number thanks to 2 buttons (+ and -).
|
||||
Use JS native logic for input number, so you can use the options ``min``, ``max``, ``step``, ``placeholder``.
|
||||
This widget changes input number field and make it easier to increment the number thanks to 2 buttons (+ and -).
|
||||
Use JS native logic for input number, so you can use the options ``min``, ``max``, ``step``, ``placeholder``.
|
||||
|
||||
Demo available at `Settings > Users & Companies > Users > *Select One* > See 'Credit Limit' field`
|
||||
|
||||
@@ -11,13 +11,15 @@ Add an option to choose the step iteration and limits (min and max values).
|
||||
|
||||
Example for an 0.25 step, min to -1 and max to 10 :
|
||||
|
||||
``<field name="sale_delay" widget="numeric_step" options="{'step': 0.25, 'min': -1, 'max': 10}" /> days``
|
||||
.. code:: xml
|
||||
|
||||
<field name="sale_delay" widget="numeric_step" options="{'step': 0.25, 'min': -1, 'max': 10}" /> days
|
||||
|
||||
**Examples**
|
||||
|
||||
Iteration with 0.25 step, min to -1 and max to 10.
|
||||
|
||||
Start to incremente with button, continue incrementing with scrolling mouse.
|
||||
Start to increment with button, continue incrementing with scrolling mouse.
|
||||
|
||||
.. figure:: ../static/description/step0,25andlimits.gif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user