addTaskBar
void oBXEditorUtils.addTaskBar( string className, int taskbarSetPos, string taskbarTitle, array params );
The method is used to add a user's taskbar to the visual editor. Requires that a user taskbar class to be declared beforehand (see also Adding custom taskbars).
ParametersParameter | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
className | The name of the taskbar class. | ||||||||
taskbarSetPos | Defines the taskbar position relative to the editing area.
|
||||||||
taskbarTitle | The name of the taskbar. Displayed in the title. | ||||||||
params | Additional parameters. |
Example of creating a taskbar
<script> function CustomTaskbar() { var oTaskbar = this; CustomTaskbar.prototype.OnTaskbarCreate = function() { //... } CustomTaskbar.prototype.UnParseElement = function(node) { //... } CustomTaskbar.prototype.OnElementDragEnd = function(oEl) { //... } } //Add the taskbar oBXEditorUtils.addTaskBar('CustomTaskbar',2,"Help",[]); </script>
© «Bitrix24», 2001-2024