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

Parameters

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