List View
Display a list of items.
Property | Type | Description |
---|---|---|
type | list | The view type |
items | CommandJSONViewListItem[] | The list items |
shouldFilter | ?boolean | Whether to filter the items when the Command Bar search panel value is changed |
Example
List Item
Item for the list
type view.
Property | Type | Description |
---|---|---|
value | string | The list itemβs unique value |
title | string | The list itemβs title that will be displayed |
icon | ?string | The list itemβs icon. This can be an image URL or use the icon:ICON_NAME format to use the built-in icon. Replace the ICON_NAME with the iconβs name you can find here. |
actions | ?CommandJSONViewListItemAction[] | The list itemβs actions |
subtitle | ?string | Subtitle that will be displayed next to the title |
description | ?string | Shortcut description about the item |
List Item Action
Action of the list item. itβs similar with the Action except it has additional properties.
Property | Type | Description |
---|---|---|
defaultAction | ?boolean | Whether to perform the current action when the user selects the item |
...rest | CommandJSONAction |