Views: 8178
Last Modified: 12.09.2014

Use the following code in order to add context menu options to any panel button:

$APPLICATION -> AddPanelButtonMenu($btnId, $arMenuItem)

where:

  • $btnId is the button identifier;
  • $arMenuItem is the array of options.

Note: пthe options can be resorted according to a sorting index using the following structure:
"RESORT_MENU" => true



Courses developed by Bitrix24