createGroupItem

Creates a contextual toolbar menu group item with the provided properties.

Parameters

id

Menu item id.

position

Position of the menu item in the toolbar.

isSelectable

true if menu item can be selected, false if it can only be clicked.

subMenuItems

Items contained in the submenu.

defaultSelectedItem

Item to be selected by default.