Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChoiceCallback

Represents a callback used to collect an answer to a choice.

Hierarchy

Index

Constructors

constructor

Properties

payload

payload: Callback

The raw payload returned by OpenAM

Methods

getChoices

  • getChoices(): string[]

getDefaultChoice

  • getDefaultChoice(): number

getInputValue

  • getInputValue(selector?: number | string): unknown

getOutputByName

  • getOutputByName<T>(name: string, defaultValue: T): T

getOutputValue

  • getOutputValue(selector?: number | string): unknown

getPrompt

  • getPrompt(): string

getType

  • getType(): string

setChoiceIndex

  • setChoiceIndex(index: number): void

setChoiceValue

  • setChoiceValue(value: string): void

setInputValue

  • setInputValue(value: unknown, selector?: number | string | RegExp): void