Fieldset
在同一个图例和共享语义状态下组织相关字段。
正在加载交互演示…
Fieldset::new()
.root().flex_col().gap(12.0)
.child(text("Account"))#导入
从 quickgui 导入 Fieldset。
use quickgui::*;#用法
Fieldset::new()
.root().flex_col().gap(12.0)
.child(text("Account"))#结构
Fieldset::rootFieldset::legendFieldset::descriptionFieldset::control
#API 参考
展开条目查看说明和完整签名。短横线表示声明中未记录默认值。
Fieldset
查看源码pub 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>) -> Field查看源码Fieldset::root_with
查看源码pub fn root_with(self, root: Element) -> ElementDecorate an application-owned group root with legend and description relationships.
Fieldset::root
查看源码pub fn root(self) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
Fieldset::legend_with
查看源码pub fn legend_with(self, legend: Element) -> ElementFieldset::legend
查看源码pub fn legend(self) -> ElementCreate the unstyled legend part. Use [`Self::legend_with`] to supply an existing element.
Fieldset::description_with
查看源码pub fn description_with(self, description: Element) -> ElementFieldset::description
查看源码pub fn description(self) -> ElementCreate the unstyled description part. Use [`Self::description_with`] to supply an existing element.
Fieldset::control_with
查看源码pub fn control_with(self, control: Element) -> ElementApply fieldset disabled state to an application-owned direct control.
Fieldset::control
查看源码pub fn control(self) -> ElementCreate the unstyled control part. Use [`Self::control_with`] to supply an existing element.
