本文へスキップ

RadioGroup

Radio 項目間の単一選択とキーボード移動を管理します。

デモを読み込み中…

#インポート

quickgui から RadioGroup をインポートします。

use quickgui::*;

#使い方

RadioGroup::new()
    .root().flex_col().gap(8.0)

#構成

  • RadioGroup::root

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

pub const fn new() -> Self
read_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) -> Self
ソースを見る
requiredpub 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) -> Self
ソースを見る
is_read_onlypub const fn is_read_only(self) -> bool—

Configures is read only for this part.

pub const fn is_read_only(self) -> bool
ソースを見る
is_requiredpub const fn is_required(self) -> bool—

Configures is required for this part.

pub const fn is_required(self) -> bool
ソースを見る

RadioGroup::root_with

ソースを見る
pub fn root_with(self, root: Element) -> Element

Decorate an application-owned group root without adding layout or appearance.

RadioGroup::root

ソースを見る
pub fn root(self) -> Element

Create the unstyled root part. Use [`Self::root_with`] to supply an existing element.

pub fn radio_group() -> Element

Create an unstyled semantic radio-group root. This shorthand is equivalent to `RadioGroup::new().root_with(div())`.