groups: Optional. An array of Group 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.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).
The Main Action for an Option can be provided as the plain Action object or as a special object that allows to customize how the action is visualised by the Command Bar.
type OptionMainAction =
| Action
| {
/** The default Action object. */
action: Action;
/** The label for this action. By default it will be inferred
* from the action property. */
label?: string;
/** The tooltip for this action. By default it will be inferred
* from the action property. */
tooltip?: string;
/** The icon for this action. Either an emoji or an Image URL.
* By default it will be inferred from the action property. */
icon?: Icon;
};