number class
A kind of input
that handles numbers.
Methods¶
__init__() ¶
__init__(
value=None,
label=None,
step=1,
step_multiplier=10,
min=None,
max=None,
change_delay=None, # App config
on_action=None,
action_keys="Enter",
width=None,
on_change=None,
propagate=None, # App config
active=True,
id=None,
properties=None,
class_name=None,
hover_text=None,
) -> None
Create a new number
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Any
|
The numerical value represented by this control. |
None
|
|
str
|
The label associated with the input. |
None
|
|
Union[int,float]
|
The amount by which the value is incremented or decremented when the user clicks one of the arrow buttons. |
1
|
|
Union[int,float]
|
A factor that multiplies step when the user presses the Shift key while clicking one of the arrow buttons. |
10
|
|
Union[int,float]
|
The minimum value to accept for this input. |
None
|
|
Union[int,float]
|
The maximum value to accept for this input. |
None
|
|
int
|
Minimum interval between two consecutive calls to the on_change callback. |
App config
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when a specific key is pressed.
|
None
|
|
str
|
Semicolon (';')-separated list of supported key names. |
Enter
|
|
Union[str, int]
|
The width of the element. |
None
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when the value is updated.
|
None
|
|
bool
|
Allows the control's main value to be automatically propagated. |
App config
|
|
bool
|
Indicates if this component is active. |
True
|
|
str
|
The identifier that is assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
Bound to a dictionary that contains additional properties for this element. |
None
|
|
str
|
The list of CSS class names that are associated with the generated HTML Element. |
None
|
|
str
|
The information that is displayed when the user hovers over this element. |
None
|