labeled

fun <T> labeled(name: StyledText, showRequired: RequiredIndicatorStyle? = WhenInvalid(), visualizer: NamedConfig.() -> FieldVisualizer<T>): FieldVisualizer<T>(source)
fun <T> labeled(name: String, showRequired: RequiredIndicatorStyle? = WhenInvalid(), visualizer: NamedConfig.() -> FieldVisualizer<T>): FieldVisualizer<T>(source)

Creates a component with a Label and the result of visualizer that is bound to a Field. This control simply wraps an existing one with a configurable text label.

Parameters

name

used in the label

showRequired

used to indicate whether the field is required.

visualizer

being decorated


fun <T> labeled(name: StyledText, help: StyledText, showRequired: RequiredIndicatorStyle? = WhenInvalid(), visualizer: LabeledConfig.() -> FieldVisualizer<T>): FieldVisualizer<T>(source)

Creates a component with a name Label, the result of visualizer and a helper Label that is bound to a Field. This control simply wraps an existing one with configurable text labels.

Parameters

name

used in the name label

help

used as helper text

showRequired

used to indicate whether the field is required.

visualizer

being decorated


fun <T> labeled(name: String, help: String, showRequired: RequiredIndicatorStyle? = WhenInvalid(), visualizer: LabeledConfig.() -> FieldVisualizer<T>): FieldVisualizer<T>(source)

Creates a component with a name Label, the result of visualizer and a helper Label that is bound to a Field. This control simply wraps an existing one with configurable text labels.

Parameters

name

used in the label

help

used as helper text

showRequired

used to indicate whether the field is required.

visualizer

being decorated