Documentation

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).

Parameters
Parameter Description
classNameThe name of the taskbar class.
taskbarSetPos Defines the taskbar position relative to the editing area.
0 At the top, over the editing area.
1 The left of the editing area.
2 The right of the editing area.
3 At the bottom, under 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
Up