Companion

object Companion

Functions

Link copied to clipboard
fun <T> builderOf(formControl: FormControlComponent, store: Store<T>? = null): () -> FormControlComponent.ValidationResult

Simple factory method to encapsulate the logic that defining some `validationMessage(s)` property beats the validation from the store! Also defer the execution after the component object is fully initialized, so that the declaration order of the control and a possible manually declared validation message property does not matter!