pub struct DialogProps {Show 16 fields
pub open: bool,
pub onclose: EventHandler<()>,
pub title: Element,
pub heading: HeadingLevel,
pub description: Option<Element>,
pub size: DialogSize,
pub placement: DialogPlacement,
pub modal: bool,
pub close_label: Option<AccessibleName>,
pub footer: Option<Element>,
pub handle: bool,
pub scrollable: bool,
pub fc_id: Option<Id>,
pub class: Option<String>,
pub attributes: Vec<Attribute>,
pub children: Element,
}Expand description
Properties for the Dialog component.
Fields§
§open: bool§onclose: EventHandler<()>§title: Element§heading: HeadingLevel§description: Option<Element>§size: DialogSize§placement: DialogPlacement§modal: bool§close_label: Option<AccessibleName>Names the close button; “Close” when omitted.
handle: boolThe drag handle drawn on a bottom sheet. Decorative.
scrollable: boolMake a body that may scroll reachable by keyboard.
fc_id: Option<Id>The runtime id for data-fc-id; it also marks the dialog data-fc-kind="dialog".
class: Option<String>§attributes: Vec<Attribute>§children: ElementImplementations§
Source§impl DialogProps
impl DialogProps
Sourcepub fn builder() -> DialogPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> DialogPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building DialogProps.
On the builder, call .open(...), .onclose(...), .title(...), .heading(...)(optional), .description(...)(optional), .size(...)(optional), .placement(...)(optional), .modal(...)(optional), .close_label(...)(optional), .footer(...)(optional), .handle(...)(optional), .scrollable(...)(optional), .fc_id(...)(optional), .class(...)(optional), .attributes(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of DialogProps.