TextInput¶
pywry.toolbar.TextInput
¶
Bases: ToolbarItem
A text input field with debounced change events.
Emits {value: ..., componentId: ...} on input change.
| ATTRIBUTE | DESCRIPTION |
|---|---|
value |
Initial text value (default: "").
TYPE:
|
placeholder |
Placeholder text shown when empty (default: "").
TYPE:
|
debounce |
Milliseconds to debounce input events (default: 300).
TYPE:
|
Examples:
>>> TextInput(
... label="Search:",
... event="search:query",
... placeholder="Type to search...",
... debounce=300,
... )
Functions¶
auto_generate_component_id
¶
auto_generate_component_id() -> ToolbarItem
Auto-generate component_id based on type if not provided.
validate_event_name
classmethod
¶
Validate event follows namespace:event-name pattern.