Check documentation for the latest version of dhtmlxSuite addListOption DHTMLX Docs

addListOption

adds a listed option to a select button

void addListOption(string|number parentId,string|number optionId,number pos,string type,string text,string img);
parentIdstring|numberthe id of a select button
optionIdstring|numberthe id of a listed option
posnumberthe position of a listed option
typestringthe type of a listed option (button/separator)
textstringthe text for a listed option
imgstringthe image for a listed option

Example

myToolbar.addListOption(parentId, optionId, pos, type, text, img);

Back to top