i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > commands > ICommandGroup > primaryCommand

    commands.ICommandGroup.primaryCommand property

    Gets the group's primary command, as a command or command identifier.

    Signature:

    readonly primaryCommand?: ICommand | CommandId;
    

    Returns: ICommand | CommandId

    Introduced: version 1.10

    Remarks

    The primary command runs when users click the main part of the split button in the ribbon, or the group's entry in a pop-up menu. The drop-down menu lists the commands that are surfaced in the group, so it includes the primary command only if you also surface it there.

    If omitted, the first command that is surfaced in the group is the primary command, as in versions before 1.10.

    In this article
    Back to top © N. Harris Computer Corporation