Check documentation for the latest version of dhtmlxSuite addButton DHTMLX Docs

addButton

adds a button to the toolbar

void addButton(string|number id,number pos,string text,string imgEn,string imgDis);
idstring|numberid of a button
posnumberposition of a button
textstringtext for a button (null for no text)
imgEnstringimage for the enabled state (null for no image)
imgDisstringimage for the disabled state (null for no image)

Example

myToolbar.addButton(id, pos, text, imgEn, imgDis);

Back to top