CBitrixComponent::AddIncludeAreaIcon
void
AddIncludeAreaIcon(
array arIcon
);
The method adds a new button to component buttons that are displayed in the
component area in the site editing mode.
Parameters
Parameter |
Description |
arIcon |
An array describing the button in the format: array(
'URL' => "javascript:alert('Button');",
'SRC' => $this->GetPath().'/images/znak.gif',
'TITLE' => "Button"
) |
Example
$this->AddIncludeAreaIcon(
array(
'URL' => "javascript:alert('It's a new button for ".$this->GetName()."');",
'SRC' => $this->GetPath().'/images/znak.gif',
'TITLE' => "It's a new button"
)
);
See Also