@@ -248,35 +248,35 @@ Question Properties
248
248
249
249
A question is a dictionary containing question related values:
250
250
251
- - type: (String) Type of the prompt. Defaults: input - Possible values:
251
+ - `` type `` : (String) Type of the prompt. Defaults: input - Possible values:
252
252
input, confirm, list, rawlist, expand, checkbox, password, editor
253
- - name: (String) The name to use when storing the answer in the answers
253
+ - `` name `` : (String) The name to use when storing the answer in the answers
254
254
hash. If the name contains periods, it will define a path in the
255
255
answers hash.
256
- - message: (String\| Function) The question to print. If defined as a
256
+ - `` message `` : (String\| Function) The question to print. If defined as a
257
257
function, the first parameter will be the current inquirer session
258
258
answers.
259
- - default: (String\| Number\| Array\| Function) Default value(s) to use if
259
+ - `` default `` : (String\| Number\| Array\| Function) Default value(s) to use if
260
260
nothing is entered, or a function that returns the default value(s).
261
261
If defined as a function, the first parameter will be the current
262
262
inquirer session answers.
263
- - choices: (Array\| Function) Choices array or a function returning a
263
+ - `` choices `` : (Array\| Function) Choices array or a function returning a
264
264
choices array. If defined as a function, the first parameter will be
265
265
the current inquirer session answers. Array values can be simple
266
266
strings, or objects containing a name (to display in list), a value
267
267
(to save in the answers hash) and a short (to display after
268
268
selection) properties. The choices array can also contain a
269
269
Separator.
270
- - validate: (Function) Receive the user input and should return true if
270
+ - `` validate `` : (Function) Receive the user input and should return true if
271
271
the value is valid, and an error message (String) otherwise. If false
272
272
is returned, a default error message is provided.
273
- - filter: (Function) Receive the user input and return the filtered
273
+ - `` filter `` : (Function) Receive the user input and return the filtered
274
274
value to be used inside the program. The value returned will be added
275
275
to the Answers hash.
276
- - when: (Function, Boolean) Receive the current user answers hash and
276
+ - `` when `` : (Function, Boolean) Receive the current user answers hash and
277
277
should return true or false depending on whether or not this question
278
278
should be asked. The value can also be a simple boolean.
279
- - pageSize: (Number) Change the number of lines that will be rendered
279
+ - `` pageSize `` : (Number) Change the number of lines that will be rendered
280
280
when using list, rawList, expand or checkbox.
281
281
282
282
User Interfaces and Styles
0 commit comments