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
@@ -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