mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
sets the label of a node of a tree, within by the treewidget
This commit is contained in:
parent
8d96aab8fd
commit
41a2653679
@ -384,6 +384,17 @@ var et2_tree = et2_inputWidget.extend({
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* setLabel, sets the Label of of an item by id
|
||||
* @param _id ID of the node
|
||||
* @param _label label to set
|
||||
* @return void
|
||||
*/
|
||||
setLabel: function(_id, _label) {
|
||||
if(this.input == null) return null;
|
||||
this.input.setItemText(_id,_label);
|
||||
},
|
||||
|
||||
/**
|
||||
* getSelectedNode, retrieves the full node of the selected Item
|
||||
* @return string or null
|
||||
|
Loading…
Reference in New Issue
Block a user