List View
Last updated
Last updated
The List View response tells the Command Bar to display a list of options.
type: "list"
options: An array of objects.
groups: Optional. An array of objects (or strings). Can be used to define the order in which they appear and customize how they are displayed.
ranking: Optional. The default value is true
, i.e the Command Bar's default ranking will be used. If you wish to return different options as the user types in the Command Bar, set ranking
to false
. Then Slapdash will run your command with a special parameter keywords
that you can use to decide what options to return back.
Property CommandResponse.view.options
is the list of options that are displayed in the List View.
title: The title for the option.
subtitle: Optional. The subtitle for the option. Can be provided as a string or a list of strings.
Property CommandResponse.view.groups
allows to display options in the List View in groups. Each Group
can be a string or an object. Provide Group as an object if you want to customize its appearance (e.g. change its title).
action: Option's . This Action is executed when Enter
is pressed on the Option (or when the option is clicked).
moveAction: Optional. Option's object. This Action is executed when Tab is pressed on the Option.
icon: Optional. The for the option.
group: Optional. The this option belongs to.
The Main Action for an Option can be provided as the plain object or as a special object that allows to customize how the action is visualised by the Command Bar.
Property CommandResponse.view.options[].moveAction
allows providing a to change the location of the Command Bar.