radioGroup

fun <C : HTMLElement, T> RenderContext.radioGroup(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, tag: TagFactory<Tag<C>>, initialize: RadioGroup<C, T>.() -> Unit): Tag<C>

Factory function to create a RadioGroup.

API-Sketch:

radioGroup<T>() {
val value: DatabindingPropert<T>

radioGroupLabel() { }
radioGroupValidationMessages() {
val msgs: Flow<List<ComponentValidationMessage>>
}
// for each T {
radioGroupOption(option: T) {
val selected: Flow<Boolean>
val active: Flow<Boolean>

radioGroupOptionToggle() { }
radioGroupOptionLabel() { }
radioGroupOptionDescription() { } // use multiple times
}
// }
}

For more information refer to the official documentation


fun <T> RenderContext.radioGroup(classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, initialize: RadioGroup<HTMLDivElement, T>.() -> Unit): Tag<HTMLDivElement>

Factory function to create a RadioGroup with a HTMLDivElement as default root Tag.

API-Sketch:

radioGroup<T>() {
val value: DatabindingPropert<T>

radioGroupLabel() { }
radioGroupValidationMessages() {
val msgs: Flow<List<ComponentValidationMessage>>
}
// for each T {
radioGroupOption(option: T) {
val selected: Flow<Boolean>
val active: Flow<Boolean>

radioGroupOptionToggle() { }
radioGroupOptionLabel() { }
radioGroupOptionDescription() { } // use multiple times
}
// }
}

For more information refer to the official documentation