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§

source

fn child_content(&self) -> Option<Widget>

Get the content of this dialog.

source

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.

source

fn add_toast(&self, toast: Toast)

Add a toast.

Implementors§