Determine context menu buttons in compote_epilog.php using the method:
$APPLICATION->SetEditArea($areaId, $arIcons);
where:
$areaId is an area identifier with the context menu;
$arIcons is an array of context menu icons.
The method adds a button that opens the indicated URL in a pop-up window:
$this->AddEditAction(
"Area_identifie",
"URL of the page to be opened in a pop-up window",
"Name of the button in the toolbar",
Array(
"WINDOW" => array("wight"=>780, "height"=>500),
"ICON" => "bx-content-toolbar-edit-icon",
"SRC" => "/bitrix/images/myicon.gif"
)
);
The method adds the button that deletes an element:
$this->AddDeleteAction(
"Area_identifier",
"URL of the page deleting the specified element",
"Name of the button",
Array(
"CONFIRM" => "Do you really want to delete this element?",
)
);