optionList
Overview
Version compatibility
optionList
was introduced in version 4.23.0 of the JourneyApps Container.
optionList
displays a list of options to the user. optionList
needs to be triggered from the JavaScript/TypeScript.
If more than 12 items are displayed, a type-ahead filter is included.
Basic Example
Appearance
On a mobile device, the
optionList
takes up the entire screen.On desktop, the
optionList
is displayed in the centre of the screen.
Configuration
arrayOfButtons
Required
An array of strings denoting the text of the options
additionalOptions
Optional
An object with one or more of the following properties:
title: (String) The title of the optionList Defaults to
Choose an option
.
Returns: The index of the selected option. If the user cancels the optionList
, -1
will be returned.
Last updated