i2 Notebook SDK
Search results for

    Show/hide table of contents

    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.

    In this article
    • commands.IActionArea.surfaceCommands() method
    • Parameters
    • Exceptions
    • Remarks
    Back to top © N. Harris Computer Corporation