Function cursive_extras::info_dialog
source · pub fn info_dialog<T: Display, U: Into<StyledString>>(
title: T,
text: U,
) -> OnEventView<Dialog>Expand description
Convenience function that shows a user a dialog box with a message that includes a back button
§Example
let mut root = cursive::default();
root.add_layer(info_dialog("Info", "This is important!"));
root.run();