switchWithLabel
fun <C : HTMLElement> RenderContext.switchWithLabel(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, tag: TagFactory<Tag<C>>, initialize: SwitchWithLabel<C>.() -> Unit): Tag<C>
Factory function to create a SwitchWithLabel.
API-Sketch:
switchWithLabel() {
val value: DatabindingProperty<Boolean>
val enabled: Flow<Boolean>
switchToggle() { }
switchLabel() { }
switchDescription() { } // use multiple times
switchValidationMessages() {
val msgs: Flow<List<ComponentValidationMessage>>
}
}
Content copied to clipboard
For more information refer to the official documentation
fun RenderContext.switchWithLabel(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, initialize: SwitchWithLabel<HTMLDivElement>.() -> Unit): Tag<HTMLDivElement>
Factory function to create a SwitchWithLabel with a HTMLDivElement as default root Tag.
API-Sketch:
switchWithLabel() {
val value: DatabindingProperty<Boolean>
val enabled: Flow<Boolean>
switchToggle() { }
switchLabel() { }
switchDescription() { } // use multiple times
switchValidationMessages() {
val msgs: Flow<List<ComponentValidationMessage>>
}
}
Content copied to clipboard
For more information refer to the official documentation