mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 13:22:06 +02:00
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);
|
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
|
* getSelectedNode, retrieves the full node of the selected Item
|
||||||
* @return string or null
|
* @return string or null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user