-
Currently I have enough choices in my select menu that it scrolls. Is there a way to make the menu show more choices at once? If my terminal was really small, that'd be fine, but I have plenty of room to show more. Here's my code: async askFieldGeneralType () {
return select({
name: 'fieldType',
message: 'What type of data is stored in this field?',
choices: [
{
name: 'string',
value: 'string'
},
{
name: 'int',
value: 'int'
},
{
name: 'array',
value: 'array'
},
{
name: 'bool',
value: 'bool'
},
{
name: 'Date object',
value: 'date_object',
description: 'The data is a date, date and time, or date interval'
},
{
name: 'float',
value: 'float'
},
{
name: 'object',
value: 'object',
description: 'The data will be represented by a php object.'
},
{
name: 'object_collection',
value: 'object_collection',
description: 'The data will be represented by a collection of php objects.'
},
{
name: 'relation',
value: 'relation',
description: 'The field relates this entity type to another entity type.'
}
]
})
} |
Beta Was this translation helpful? Give feedback.
Answered by
SBoudrias
Jan 26, 2024
Replies: 1 comment 1 reply
-
Hi, you can use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jerrac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, you can use the
pageSize
option. Documented here