Views: 3355 (Data available since 06.02.2017)

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

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


  • $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 «Bitrix», Inc.