Skip to content

Select.prompt with more than 10 options and without scroll #762

Answered by c4spar
juanfra684 asked this question in Q&A
Discussion options

You must be logged in to vote

To show all options you can set the maxRows option to Infinity.

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 ],
  maxRows: Infinity,
});

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@juanfra684
Comment options

@c4spar
Comment options

Answer selected by juanfra684
@juanfra684
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants