Package-level declarations

Types

Link copied to clipboard
class Binding0<E : Any, T : Any>(program: Program, val element: Element, val event: Event<E>, val property: KMutableProperty0<T>, newValueFromEvent: (E) -> T, setElementValue: (T) -> Unit) : AutoCloseable

A utility class for bi-directionally binding a property of type T to an Element, where changes in one are synchronized with the other. The binding operates on the provided Program instance's coroutine scope and listens for events of type E, which are used to update the property value.

Link copied to clipboard
class Binding1<E : Any, T : Any>(program: Program, val element: Element, val event: Event<E>, val container: Any, val property: KMutableProperty1<Any, T>, newValueFromEvent: (E) -> T, setElementValue: (T) -> Unit) : AutoCloseable

A class that creates a two-way binding between an event-driven system and a property of a container, ensuring synchronization of state between a KMutableProperty1 and an external element's value.