sets the label of a node of a tree, within by the treewidget

This commit is contained in:
Klaus Leithoff 2013-02-19 12:58:32 +00:00
parent 8d96aab8fd
commit 41a2653679

View File

@ -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