Select.prompt
with more than 10 options and without scroll
#762
Answered
by
c4spar
juanfra684
asked this question in
Q&A
-
Hi, I couldn't find how to show more than 10 options in the terminal without the scroll. Here is an example: import { Select } from "jsr:@cliffy/[email protected]/select";
const selectNumber = await Select.prompt({
message: "select a number",
options: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
}); Any idea?. |
Beta Was this translation helpful? Give feedback.
Answered by
c4spar
Nov 6, 2024
Replies: 1 comment 3 replies
-
@juanfra684 what do you mean by “without the scroll”? Do you want to have pagination instead of scrolling? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To show all options you can set the
maxRows
option toInfinity
.