forked from extern/egroupware
introduce getLabel function on tree-widget
This commit is contained in:
parent
0f994892b2
commit
0de87f5711
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user