Required library edition: Required library file: dhtmlxtoolbar.js
returns a text of a listed option
var text = toolbar.getListOptionText(parentId, optionId);