sepal_ui.sepalwidgets.inputs.NumberField#
- class sepal_ui.sepalwidgets.inputs.NumberField(**kwargs)[source]#
Custom widget to input numbers in text area and add/subtract with single increment.
- Parameters:
max_ (Int) – Maximum selectable number. Defaults to 10.
min_ (Int) – Minimum selectable number. Defaults to 0.
increm (Int) – incremental value added at each step. default to 1
kwargs – Any parameter from a v.TextField. If set, ‘type’ will be overwritten.
Attributes
increm
Incremental value added at each step.
max_
Maximum selectable number.
min_
Minimum selectable number.
Methods
Custom widget to input numbers in text area and add/subtract with single increment.
Subtracts increm to the current v_model number.
Adds increm to the current v_model number.
- NumberField.__init__(max_=10, min_=0, increm=1, **kwargs)[source]#
Custom widget to input numbers in text area and add/subtract with single increment.
- Parameters:
max_ (int) – Maximum selectable number. Defaults to 10.
min_ (int) – Minimum selectable number. Defaults to 0.
increm (int) – incremental value added at each step. default to 1
kwargs – Any parameter from a v.TextField. If set, ‘type’ will be overwritten.