Skip to main content

show_modal

Function show_modal 

Source
pub fn show_modal<R>(
    ctx: &Context,
    id: impl Hash + Debug,
    title: impl Into<String>,
    open: &mut bool,
    add_contents: impl FnOnce(&mut Ui) -> R,
) -> Option<ModalResponse<R>>
Expand description

Helper function to show a centered modal with standard styling