Fieldset
Groups related fields under one legend and shared semantic state.
Loading interactive demo…
Fieldset::new()
.root().flex_col().gap(12.0)
.child(text("Account"))#Import
Import Fieldset from quickgui.
use quickgui::*;#Usage
Fieldset::new()
.root().flex_col().gap(12.0)
.child(text("Account"))#Anatomy
Fieldset::rootFieldset::legendFieldset::descriptionFieldset::control
#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
Fieldset
View sourcepub fn new(id: impl Into<ElementId>) -> Selfidpub const fn id(self) -> ElementId—
legend_idpub fn legend_id(self) -> ElementId—
description_idpub fn description_id(self) -> ElementId—
is_disabledpub const fn is_disabled(self) -> bool—
disabledpub fn disabled(mut self, disabled: bool) -> Self—
fieldpub fn field(self, control_id: impl Into<ElementId>) -> Field—
Create one nested field with group disabled state already applied.
pub fn field(self, control_id: impl Into<ElementId>) -> FieldView sourceFieldset::root_with
View sourcepub fn root_with(self, root: Element) -> ElementDecorate an application-owned group root with legend and description relationships.
Fieldset::root
View sourcepub fn root(self) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
Fieldset::legend_with
View sourcepub fn legend_with(self, legend: Element) -> ElementFieldset::legend
View sourcepub fn legend(self) -> ElementCreate the unstyled legend part. Use [`Self::legend_with`] to supply an existing element.
Fieldset::description_with
View sourcepub fn description_with(self, description: Element) -> ElementFieldset::description
View sourcepub fn description(self) -> ElementCreate the unstyled description part. Use [`Self::description_with`] to supply an existing element.
Fieldset::control_with
View sourcepub fn control_with(self, control: Element) -> ElementApply fieldset disabled state to an application-owned direct control.
Fieldset::control
View sourcepub fn control(self) -> ElementCreate the unstyled control part. Use [`Self::control_with`] to supply an existing element.
