Check documentation for the latest version of dhtmlxSuite addButtonSelect DHTMLX Docs

addButtonSelect

adds a select button to the toolbar

void addButtonSelect(string id,number pos,string text,array opts,string imgEn,string imgDis,boolean renderSelect,boolean openAll,number maxOpen,string mode);
idstringid of a select button
posnumberposition of a select button
textstringtext for a select button (null for no text)
optsarraylisted options for a select button
imgEnstringimage for the enabled state (null for no image)
imgDisstringimage for the disabled state (null for no image)
renderSelectbooleanhighlights the clicked item in submenu
openAllbooleanopens submenu by clicking on an item's icon or text
maxOpennumbera count of visible subitems
modestring"select" for select mode (select-like behaviour)

Example

myToolbar.addButtonSelect(
    id,
    pos,
    text,
    opts,
    imgEn, 
    imgDis, 
    renderSelect, 
    openAll, 
    maxOpen, 
    mode
);

Back to top