With Validator
Interface which RootStores can implement to mark them that they have a ComponentValidator. Then all SubStores can evaluate if a ComponentValidationMessage is available for their field.
The validator property must set with a ComponentValidator when implementing this interface. To automatically call the validator when the model in RootStore is changed, use the validate convenience function in the init block:
val store = object : RootStore<MyData>(MyData()), WithValidator<MyData, String> {
override val validator = MyDataValidator
init { validate("my metadata") }
}Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open infix fun <E : Event, X : Element> DomListener<E, X>.handledBy(handler: Handler<Unit>)
Content copied to clipboard
open infix fun <E : Event, X : Element> DomListener<E, X>.handledBy(execute: suspend (E) -> Unit): Job
Content copied to clipboard
open infix fun <E : Event> WindowListener<E>.handledBy(handler: Handler<Unit>)
Content copied to clipboard