We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cc7c5 commit 02f5ea5Copy full SHA for 02f5ea5
src/prompts/select.rs
@@ -35,12 +35,19 @@ use console::{Key, Term};
35
/// }
36
/// ```
37
pub struct Select<'a> {
38
+ /// The initial selected element when the selection menu is rendered,
39
+ /// indicated by its index in [items].
40
default: usize,
41
+ /// Items the user can select.
42
items: Vec<String>,
43
+ /// Message of the selection prompt.
44
prompt: Option<String>,
45
+ /// whether to report the selected value after interaction
46
report: bool,
47
+ /// whether the selection menu should be erased from the screen after interaction
48
clear: bool,
49
theme: &'a dyn Theme,
50
+ /// Maximal number of items on page (`None` if unbounded).
51
max_length: Option<usize>,
52
}
53
0 commit comments