[][src]Function vgtk::run_dialog_props

pub fn run_dialog_props<C: 'static + Component>(
    parent: Option<&Window>,
    props: C::Properties
) -> impl Future<Output = Result<ResponseType, Canceled>>

Launch a Dialog component as a modal dialog, creating its component with the given initial properties.

This facilitates using custom components with nontrivial state (including callbacks) as dialogs.

See run_dialog.