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

enabled
Link copied to clipboard
js
open fun enabled(value: Boolean)
open fun enabled(value: Flow<Boolean>)
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
toString
Link copied to clipboard
js
open fun toString(): String

Properties

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

Inheritors

PushButtonComponent
Link copied to clipboard
FormMixin
Link copied to clipboard
InputFormProperties
Link copied to clipboard
FormControlComponent
Link copied to clipboard