Home > @i2analyze/notebook-sdk > commands > ICommandDynamicGroup > primaryCommand
commands.ICommandDynamicGroup.primaryCommand property
Gets the split button's primary command, as a command or command identifier.
Signature:
readonly primaryCommand: ICommand | CommandId;
Introduced: version 1.10
Remarks
The primary command is not in the drop-down menu, which commands.IDynamicGroupConfigBase.onPopulate() populates. The split button is displayed before the group is first opened, so the primary command must already exist: create it during plug-in initialization, not inside onPopulate.