diff --git a/plugins/ui/src/deephaven/ui/components/radio_group.py b/plugins/ui/src/deephaven/ui/components/radio_group.py index 311bff67f..70593df67 100644 --- a/plugins/ui/src/deephaven/ui/components/radio_group.py +++ b/plugins/ui/src/deephaven/ui/components/radio_group.py @@ -15,6 +15,7 @@ # Validation NecessityIndicator, Orientation, + ValidationBehavior, ) from .basic import component_element from ..elements import Element @@ -33,7 +34,7 @@ def radio_group( name: str | None = None, is_required: bool | None = None, is_invalid: bool | None = None, - # validation_behaviour # omitted because validate is omitted + validation_behaviour: ValidationBehavior, # validate, # omitted because of synchronouse return label: Any | None = None, description: Any | None = None, @@ -108,13 +109,15 @@ def radio_group( name: The name of the radio button, used when submitting and HTML form. is_required: Whether the radio button is required on the input before form submission. is_invalid: Whether the radio button is in an invalid state. + validation_behaviour: Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA. label: The content to display as the label. description: A description for the field. Provides a hint such as specific requirements for what to choose. error_message: An error message for the field. label_position: The position of the label relative to the radio button. label_align: The horizontal alignment of the label relative to the radio button. necessity_indicator: Whether the required state should be shown as an icon or text. - contextual_help: A ContextualHelp element to place next to the label + contextual_help: A ContextualHelp element to place next to the label. + show_error_icon: Whether an error icon is rendered. on_change: Handler that is called when the radio button value changes. on_focus: Handler that is called when the radio button is focused. on_blur: Handler that is called when the radio button loses focus.