Check documentation for the latest version 6.0 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);

Parameters

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