Documentation

AddIncludeAreaIcons

void
AddIncludeAreaIcons(
 array arIcons
);

The method adds an array of new icons to the component icons that are displayed in the component area in the site edit mode. When calling the method AddIncludeAreaIcons it cancels all previous calls for methods AddIncludeAreaIcons and AddIncludeAreaIcon. Non-static method.

Parameters

ParameterDescription
arIcons Array containing arrays describing an icon. Each of arrays that describes 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->AddIncludeAreaIcons(
    array(
        array(
            'URL' => "jav * ascript:alert('Это новая кнопка для ".$this->GetName()."');",
            'SRC' => $this->GetPath().'/images/znak.gif',
            'TITLE' => "This is new icon"
        ),
        array(
            'URL' => "jav * ascript:alert('Это ещё одна кнопка для ".$this->GetName()."');",
            'SRC' => $this->GetPath().'/images/znak1.gif',
            'TITLE' => "One more icon"
        ),
    )
);

See Also

  • CBitrixComponent::AddIncludeAreaIcon


  • © «Bitrix24», 2001-2024
    Up