Javascript Toolbar Button properties

 
Enable button
Disable button
Show button
Hide button
Set button text 
Set button image

<div id="toolbar_zone" style="width:600; height:50;"/> <script> function setNewText(newText){ var z=aToolBar.getItem(document.getElementById('button_id').value); if (z.setText) z.setText(newText); } aToolBar=new dhtmlXToolbarObject(document.getElementById('toolbar_zone'),'100%',16,"Demo toolbar"); aToolBar.setOnClickHandler(onButtonClick); aToolBar.loadXML("_toolbar.xml") aToolBar.showBar(); </script> Parameters passed to the constructor are:
  • object to attach tree to (should be loaded before calling constructor)
  • width of the toolbar
  • height of the toolbar
  • title of toolbar