RadioGroup
Owns single-choice selection and keyboard movement across Radio items.
Loading interactive demo…
RadioGroup::new()
.root().flex_col().gap(8.0)#Import
Import RadioGroup from quickgui.
use quickgui::*;#Usage
RadioGroup::new()
.root().flex_col().gap(8.0)#Anatomy
RadioGroup::root
#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
RadioGroup
View sourcepub const fn new() -> Selfread_onlypub const fn read_only(mut self, read_only: bool) -> Self—
Show values the user may read but not change, Base UI's `readOnly`.
pub const fn read_only(mut self, read_only: bool) -> SelfView sourcerequiredpub const fn required(mut self, required: bool) -> Self—
Require a selection before submission, Base UI's `required`.
pub const fn required(mut self, required: bool) -> SelfView sourceis_read_onlypub const fn is_read_only(self) -> bool—
is_requiredpub const fn is_required(self) -> bool—
RadioGroup::root_with
View sourcepub fn root_with(self, root: Element) -> ElementDecorate an application-owned group root without adding layout or appearance.
RadioGroup::root
View sourcepub fn root(self) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
radio_group
View sourcepub fn radio_group() -> ElementCreate an unstyled semantic radio-group root. This shorthand is equivalent to `RadioGroup::new().root_with(div())`.
