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:
  • element_id (str) – ID of the element whose value changed

  • old_value (Any) – Previous value

  • new_value (Any) – New value

  • event_type (EventType | None)

  • timestamp (datetime)

  • cancelled (bool)

Variables:
  • element_id (str) – ID of the element whose value changed

  • old_value (Any) – Previous value

  • new_value (Any) – New value

__init__(event_type=None, timestamp=<factory>, cancelled=False, element_id='', old_value=None, new_value=None)
Parameters:
Return type:

None

Methods

__init__([event_type, timestamp, cancelled, ...])

cancel()

Cancel the event.

Attributes

cancelled

element_id

event_type

new_value

old_value

timestamp

element_id: str = ''
old_value: Any = None
new_value: Any = None
__post_init__()[source]

Initialize event type.

Return type:

None