Trait fractal::components::dialogs::toastable::ToastableDialogExt
source · pub trait ToastableDialogExt: 'static {
// Required methods
fn child_content(&self) -> Option<Widget>;
fn set_child_content(&self, content: Option<&Widget>);
fn add_toast(&self, toast: Toast);
}
Required Methods§
sourcefn child_content(&self) -> Option<Widget>
fn child_content(&self) -> Option<Widget>
Get the content of this dialog.
sourcefn set_child_content(&self, content: Option<&Widget>)
fn set_child_content(&self, content: Option<&Widget>)
Set the content of this dialog.
Use this instead of set_child
or set_content
, otherwise it will
panic.