Command Response
A JSON-encoded data structure used to describe the behavior and UI of a Slapdash command.
interface CommandResponse {
/**
* Optional.
* A side effect of the Command when it's run.
*/
action?: Action;
/**
* Optional.
* The View the Command Bar should display
* (List, Form etc.).
*/
view?: View;
/**
* Optional.
* A way to configure the command before it can
* be used. For example, to collect an API key.
*/
config?: Config;
/**
* Optional.
* A way to customize how Command Bar tokens
* that are visualized.
*/
tokens?: Token[];
/**
* Optional.
* The placeholder text in the Command Bar's input.
*/
inputPlaceholder?: string;
}Quick Examples





Last updated