pub fn styled_editview<C: Display>(
content: C,
view_name: &str,
password: bool,
) -> NamedView<EditView>
Expand description
Convenience function that creates a named EditView
that has a better
looking style and can optionally act as a password entry box
ยงExample
let mut root = cursive::default();
root.add_fullscreen_layer(
Dialog::around(styled_editview("yes", "edit", false))
.button("Quit", Cursive::quit)
.title("Styled EditView Example")
);
root.run();