NumberInput¶
pywry.toolbar.NumberInput
¶
Bases: ToolbarItem
A numeric input field with optional min/max/step constraints.
Emits {value: ..., componentId: ...} on value change.
| ATTRIBUTE | DESCRIPTION |
|---|---|
value |
Initial numeric value (default: None).
TYPE:
|
min |
Minimum allowed value (default: None).
TYPE:
|
max |
Maximum allowed value (default: None).
TYPE:
|
step |
Step increment for spinner buttons (default: None).
TYPE:
|
Examples:
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.