DateField
ロケールに応じた日付パーツを持つ、キーボード編集可能な分割日付フィールドです。
デモを読み込み中…
let field = DateField::new("start");
field.root().flex_row()#インポート
quickgui から DateField をインポートします。
use quickgui::*;#使い方
let field = DateField::new("start");
field.root().flex_row()#構成
DateField::rootDateField::segment
#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
DateField
ソースを見るpub fn new(root_id: impl Into<ElementId>) -> Selfroot_idpub const fn root_id(self) -> ElementId—
segment_idpub fn segment_id(self, segment: DateSegment) -> ElementId—
Configures segment id for this part.
pub fn segment_id(self, segment: DateSegment) -> ElementIdソースを見るsegmentpub const fn segment(self, segment: DateSegment) -> DateFieldSegment—
Describe one segment so its part and typed actions can be attached.
pub const fn segment(self, segment: DateSegment) -> DateFieldSegmentソースを見るDateField::root_with
ソースを見るpub fn root_with(self, state: &DateFieldState, root: Element) -> ElementDecorate an application-owned root without adding layout or appearance. The root is the group that owns the field's accessible name, its disabled state, its validity, and the active-descendant relationship to the segment being edited.
DateField::root
ソースを見るpub fn root(self, state: &DateFieldState) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
