Trait droom_ui::callback::callbacks::CloseCb [] [src]

pub trait CloseCb where Self: Element + 'static {
    fn set_move_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)> { ... }
    fn remove_move_cb(&mut self) -> Option<Box<Callback<(Self,)>>> { ... }
}

Called just before a dialog is closed when the user clicks the close button of the title bar or an equivalent action.

CallbackReturn::Close will be processed. If CallbackReturn::Ignore, it prevents the dialog from being closed. If you destroy the dialog in this callback, you must return CallbackReturn::Ignore.

Provided Methods

Implementors