Documentation

AddIncludeAreaIcon

void
AddIncludeAreaIcon(
 array arIcon
);

The method adds a new icon to the component icons that are displayed in the component area in site edit mode. Non-static method.

Parameters

ParameterDescription
arIcon Array describing the icon has the following format:
array(
    'URL'   => "jav * ascript:alert('This is new icon');",
    'SRC'   => $this->GetPath().'/images/znak.gif',
    'TITLE' => "This is new icon"
)	

Example

$this->AddIncludeAreaIcon(
    array(
        'URL'   => "jav * ascript:alert('Это новая кнопка для ".$this->GetName()."');",
        'SRC'   => $this->GetPath().'/images/znak.gif',
        'TITLE' => "This is new icon"
	)
);

See Also

  • CBitrixComponent::AddIncludeAreaIcons


  • © «Bitrix24», 2001-2024
    Up