Function terminal_menu::scroll
source · [−]pub fn scroll<T: Into<String>, T2: IntoIterator>(
name: T,
values: T2
) -> TerminalMenuItem where
T2::Item: Into<String>, Expand description
Make a terminal-menu item from which you can select a value from a selection. All values are dispalyed all the time.
Example
use terminal_menu::{menu, scroll, run, mut_menu};
let menu = menu(vec![
scroll("My Scrolls Name", vec![
"First Option",
"Second Option",
"Third Option"
])
]);
run(&menu);
println!("My Scrolls Value: {}", mut_menu(&menu).selection_value("My Scrolls Name"));