Check documentation for the latest version 6.0 of dhtmlxSuite setListOptionPosition DHTMLX Docs

setListOptionPosition

sets the position of a listed option (moves a listed option)

void setListOptionPosition(string|number parentId,string|number optionId,number pos);

Parameters

parentIdstring|numberthe id of a select button
optionIdstring|numberthe id of a listed option
posnumberthe position of a listed option

Example

myToolbar.setListOptionPosition(parentId, optionId, pos);

Back to top