input class
A control that displays some text that can potentially be edited.
Methods¶
__init__() ¶
__init__(
value=None,
password=False,
label=None,
multiline=False,
lines_shown=5,
type="text",
action_on_blur=False,
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 input
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Any
|
The value represented by this control. |
None
|
|
bool
|
If True, the text is obscured, and all characters are displayed as asterisks ('*'). |
False
|
|
str
|
The label associated with the input field. |
None
|
|
bool
|
If True, the input is rendered as a multi-line text area |
False
|
|
int
|
The number of lines displayed in the input control when multiline is True. |
5
|
|
str
|
The type of input element, as per HTML input types. |
text
|
|
bool
|
If True, the |
False
|
|
int
|
The minimum interval (in milliseconds) between two consecutive calls to the |
App config
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when a specific key is pressed.
|
None
|
|
str
|
A semicolon-separated list of keys that can trigger the |
Enter
|
|
Union[str, int]
|
The width of the element, in CSS units. |
None
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when the value changes.
|
None
|
|
bool
|
Determines whether the control's value is automatically reflected in the bound application variable. |
App config
|
|
bool
|
Indicates if this element is active. |
True
|
|
str
|
The identifier assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
A dictionary of additional properties that can be set to the element. |
None
|
|
str
|
A space-separated list of CSS class names to be applied to the generated HTML element. |
None
|
|
str
|
The text that is displayed when the user hovers over the element. |
None
|