Skip to content

Commit

Permalink
Add autocomplete multiselect prompt to example.js
Browse files Browse the repository at this point in the history
Add a new autocompleteMultiselect question to the `example.js` file.

* Add a new question of type `autocompleteMultiselect` to the `questions` array.
* Set the `name` property to `actors`.
* Set the `message` property to `Pick your favorite actors`.
* Set the `choices` property to an array of actor objects with `title` and `value` properties.
  • Loading branch information
CasP0 committed Jan 18, 2025
1 parent e051991 commit 9269ea0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ let interval;
value: 'fallback'
}
},
{
type: 'autocompleteMultiselect',
name: 'actors',
message: 'Pick your favorite actors',
choices: [
{ title: 'Cage', value: 'cage' },
{ title: 'Clooney', value: 'clooney' },
{ title: 'Gyllenhaal', value: 'gyllenhaal' },
{ title: 'Gibson', value: 'gibson' },
{ title: 'Grant', value: 'grant' },
{ title: 'Hanks', value: 'hanks' },
{ title: 'Downey Jr.', value: 'downey' }
]
},
{
type: 'date',
name: 'birthday',
Expand Down

0 comments on commit 9269ea0

Please sign in to comment.