Home > @i2analyze/notebook-sdk > commands > IActionArea > surfaceCommands
commands.IActionArea.surfaceCommands() method
Adds actions for the specified registered commands to the user interface.
Signature:
surfaceCommands(...commandsOrCommandIds: (ICommand | CommandId)[]): void;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
commandsOrCommandIds | (ICommand | CommandId)[] | The registered commands, or the identifiers of the commands, to surface. |
Returns:
void
Exceptions
Error
if an identifier was not a valid CommandId, or if a command was not an ICommand, or if any specified command was already surfaced in the area.
Remarks
When you surface multiple commands, the actions are added to the user interface in the same order as you specify them.