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

Parameters

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