FormProperties

interface FormProperties

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)
}

Functions

Link copied to clipboard
open fun enabled(value: Boolean)
open fun enabled(value: Flow<Boolean>)

Properties

Link copied to clipboard
abstract val disabled: DynamicComponentProperty<Boolean>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard