number¶
A kind of input
that handles numbers.
Properties¶
Name | Type | Default | Description |
---|---|---|---|
(★) |
dynamic(any) | The numerical value represented by this control. |
|
label |
str | None | The label associated with the input. |
change_delay |
int | App config | Minimum time between triggering two on_change calls. The default value is defined at the application configuration level by the change_delay configuration option. if None, the delay is set to 300ms. |
on_action |
Callback | Name of a function that is triggered when a specific key is pressed.
|
|
action_keys |
str | "Enter" | Semicolon (';')-separated list of supported key names. Authorized values are Enter, Escape, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12. |
on_change |
Callback | The name of a function that is triggered when the value is updated.
|
|
propagate |
bool | App config | Allows the control's main value to be automatically propagated. |
active |
dynamic(bool) | True | Indicates if this component is active. An inactive component allows no user interaction. |
id |
str | The identifier that will be assigned to the rendered HTML component. |
|
properties |
dict[str, any] | Bound to a dictionary that contains additional properties for this element. |
|
class_name |
str | List of CSS class names that will be associated with the generated HTML Element.
This class names will be added to the default |
|
hover_text |
dynamic(str) | Information that is displayed when the user hovers over this element. |
(★)value
is the default property for this visual element.
Usage¶
Simple¶
You can create a number field bound to a numerical variable with the following content:
Page content
<|{value}|number|>
<taipy:number>{value}</taipy:number>