Sample: dhtmlxToolbar Button properties dhtmlxToolbar main page
X

Toolbar's functionality allows to change buttons visibility, text, image and state of availability.

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

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