checkboxGroup
fun <C : HTMLElement, T> RenderContext.checkboxGroup(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, tag: TagFactory<Tag<C>>, initialize: CheckboxGroup<C, T>.() -> Unit): Tag<C>
Factory function to create a CheckboxGroup.
API-Sketch:
checkboxGroup<T>() {
val value: DatabindingPropert<List<T>>
checkboxGroupLabel() { }
checkboxGroupValidationMessages() {
val msgs: Flow<List<ComponentValidationMessage>>
}
// for each T {
checkboxGroupOption(option: T) {
val selected: Flow<Boolean>
checkboxGroupOptionToggle() { }
checkboxGroupOptionLabel() { }
checkboxGroupOptionDescription() { } // use multiple times
}
// }
}
Content copied to clipboard
For more information refer to the official documentation
fun <T> RenderContext.checkboxGroup(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, initialize: CheckboxGroup<HTMLDivElement, T>.() -> Unit): Tag<HTMLDivElement>
Factory function to create a CheckboxGroup with a HTMLDivElement as default root Tag.
API-Sketch:
checkboxGroup<T>() {
val value: DatabindingPropert<List<T>>
checkboxGroupLabel() { }
checkboxGroupValidationMessages() {
val msgs: Flow<List<ComponentValidationMessage>>
}
// for each T {
checkboxGroupOption(option: T) {
val selected: Flow<Boolean>
checkboxGroupOptionToggle() { }
checkboxGroupOptionLabel() { }
checkboxGroupOptionDescription() { } // use multiple times
}
// }
}
Content copied to clipboard
For more information refer to the official documentation