IInteractionService.createChoiceInput
Method
interface IInteractionService { // ... omitted for brevity createChoiceInput( name: string, choices?: InteractionChoiceOption[], options?: CreateInteractionInputOptions): InteractionInputBuilder;}Signature
method
createChoiceInput Creates a choice input that selects from a list of options.
createChoiceInput( name: string, choices?: InteractionChoiceOption[], options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringThe name of the input.choicesInteractionChoiceOption[] optionalThe available choices, in display order. Each option pairs a submitted value with a display label.optionsCreateInteractionInputOptions optionalOptional configuration for the input.Returns
InteractionInputBuilder Defined on
This method is defined on the following type: