wijjit.core.events.ChangeEvent
- class wijjit.core.events.ChangeEvent(event_type=None, timestamp=<factory>, cancelled=False, element_id='', old_value=None, new_value=None)[source]
Value change event for form elements.
Fired when an input value changes.
- Parameters:
- Variables:
element_id (
str) – ID of the element whose value changedold_value (
Any) – Previous valuenew_value (
Any) – New value
- __init__(event_type=None, timestamp=<factory>, cancelled=False, element_id='', old_value=None, new_value=None)
Methods
__init__([event_type, timestamp, cancelled, ...])cancel()Cancel the event.
Attributes
cancelledevent_typetimestamp