introduce getLabel function on tree-widget

This commit is contained in:
Klaus Leithoff 2013-04-10 12:32:07 +00:00
parent 0f994892b2
commit 0de87f5711

View File

@ -392,6 +392,16 @@ var et2_tree = et2_inputWidget.extend({
this.input.setItemText(_id,_label);
},
/**
* getLabel, gets the Label of of an item by id
* @param _id ID of the node
* @return _label
*/
getLabel: function(_id) {
if(this.input == null) return null;
return this.input.getItemText(_id);
},
/**
* getSelectedNode, retrieves the full node of the selected Item
* @return string or null