Interface InteractiveListConfig
Source: interactiveListPrompt.ts
Configuration for interactiveListPrompt.
Properties
message
message:
string
The message to display at the top of the list.
choices
choices:
InteractiveListChoice[]
The list of choices.
default?
optionaldefault?:string|null
The default value to select. Defaults to the first choice. A value of null represents no selection.
renderSelected?
optionalrenderSelected?: (choice:InteractiveListChoice,index:number) =>string
Function that renders the selected choice.
Parameters
choice
index
number
Returns
string
renderUnselected?
optionalrenderUnselected?: (choice:InteractiveListChoice,index:number) =>string
Functions that renders the unselected choices.
Parameters
choice
index
number
Returns
string
hideCursor?
optionalhideCursor?:boolean
Whether to hide the cursor during selection.
Default
truealignShortcuts?
optionalalignShortcuts?:boolean
Whether to horizontally align the shortcuts in the list of choices.
Default
false