How to create your own toolbar type?
The following is an example of creating a new toolbar type:
dhx.Type(dhx.ui.toolbar, { name:"BigButtonsBar", css:"dhx_bigbuttonsbar", height: 55, });
In dhx.Type() you can set the following parameters:
You can use 3 more parameters if you need to change the existed type cardinally. The parameters cooperate and define the toolbar.
Firstly, code contained in templateStart parameter is executed. Then, code from the template and finally, templateEnd's code.
dhx.Type(dhx.ui.toolbar, { name:"TransparentBar" css:"dhx_transparentbar", template:dhx.Template("#value#"), vertical:true, width:210, templateStart:dhx.Template("<div dhx_l_id='#id#' class='dhx_list_item dhx_list_{common.css}_item{obj.$selected?_selected:}' style='width:{common.width}px; height:{common.height}px; padding:{common.padding}px; margin:{common.margin}px; overflow:hidden;'>"), templateEnd:dhx.Template("</div>") }