Views: 526 (Data available since 06.02.2017)
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 «Bitrix», Inc.