ygleam/y_event
Types
pub type AnyYEvent {
BaseEvent(event: YEvent, changes_keys: ChangesKeys)
MapEvent(event: YMapEvent, changes_keys: ChangesKeys)
ArrayEvent(event: YArrayEvent, changes_keys: ChangesKeys)
TextEvent(event: YTextEvent, changes_keys: ChangesKeys)
XmlEvent(event: YXmlEvent, changes_keys: ChangesKeys)
}
Constructors
-
BaseEvent(event: YEvent, changes_keys: ChangesKeys)
-
MapEvent(event: YMapEvent, changes_keys: ChangesKeys)
-
ArrayEvent(event: YArrayEvent, changes_keys: ChangesKeys)
-
TextEvent(event: YTextEvent, changes_keys: ChangesKeys)
-
XmlEvent(event: YXmlEvent, changes_keys: ChangesKeys)
pub type ChangeAction {
AddAction(old_value: Option(YValue))
UpdateAction(old_value: Option(YValue))
DeleteAction(old_value: Option(YValue))
UnknownAction(old_value: Option(YValue))
}
Constructors
-
AddAction(old_value: Option(YValue))
-
UpdateAction(old_value: Option(YValue))
-
DeleteAction(old_value: Option(YValue))
-
UnknownAction(old_value: Option(YValue))
pub type ChangesKeys =
Dict(String, ChangeAction)
pub type PathSection {
NumberSection(Int)
StringSection(String)
}
Constructors
-
NumberSection(Int)
-
StringSection(String)
pub type YArrayEvent
pub type YTextEvent
Functions
pub fn current_target(y_event: AnyYEvent) -> YType
pub fn map_keys_changed(y_map_event: YMapEvent) -> List(String)
pub fn text_keys_changed(
y_text_event: YTextEvent,
) -> List(String)
pub fn transaction(y_event: AnyYEvent) -> Transaction
pub fn xml_attributes_changed(
y_xml_event: YXmlEvent,
) -> List(String)