Form Properties
This interface add typical state properties for en- or disabling form components.
As it often depends on the specific use case, the two complementary properties disabled and enabled are both offered. This is primarily for better readability at client side code.
example usage:
// apply interface to component class
open class MyControl : FormProperties by FormMixin() {
}
// use the property offered by the interface
val disable = storeOf(true)
myControl {
disabled(disable.value)
}
// and instead of double negative expression ``val disable = storeOf(false)`` better use:
val enable = storeOf(false)
myControl {
enabled(enable.value)
}Content copied to clipboard