Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
A KVar is an observable container for a value of type T. It must be initialized with initialValue, and this can then be modified by setting the KVar.value property. Listeners may be added using KVar.addListener, and these will be called whenever the value is changed.
Link copied to clipboard
class ObservableList<ITEM : Any>(initialItems: List<ITEM> = emptyList()) : MutableList<ITEM> , AutoCloseable
A list of items that can be observed for changes like add, remove, set, etc. Typically passed to renderEach.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object RenderSpanNames
Link copied to clipboard
Defines a reversible function, for use by KVar.map.
Functions
Link copied to clipboard
Link copied to clipboard
fun <T> ElementCreator<*>.render(value: KVal<T>, block: ElementCreator<Element>.(T) -> Unit): RenderFragment
Link copied to clipboard
fun <ITEM : Any, EL : Element> ElementCreator<EL>.renderEach(observableList: ObservableList<ITEM>, itemRenderer: ElementCreator<Element>.(ITEM) -> Unit)
Similar to render, but renders a list of items, and updates the DOM when the list changes.