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
Parameter | Description |
---|---|
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
© «Bitrix24», 2001-2024