Sample: dhtmlxToolbar Button Creation dhtmlxToolbar main page
X
Position
Text
Image
Add?
 
<script>
 
    var webBar = new dhtmlXToolbarObject("toolbarObj");
    ...
    // adding a button
    webBar.addButton(itemId, pos, text, imgEnabled, imgDisabled);
    // removing a button
    webBar.removeItem(itemId);
</script>