Check documentation for the latest version of dhtmlxSuite getItemOptionText DHTMLX Docs

getItemOptionText

returns the text of buttonSelect item's option

string getItemOptionText(string|number id,string|number optId);
idstring|numberthe item's id
optIdstring|numberthe option's id
stringthe text of an option

Example

// setting text for an option
setItemOptionText(item, optId, text);
 
// getting the text
var text = getItemOptionText(id, optId);

Change log

added in version 4.2

Back to top