Fieldset
関連するフィールドを 1 つの凡例と共有セマンティック状態の下にまとめます。
デモを読み込み中…
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.
