tobiu
10 Jun 2009, 11:12 AM
hi together,
this is nothing big, but since this one got a setter-method in ext3, a getter comes in handy for me ;)
kind regards, tobiu
Ext.override(Ext.Toolbar.TextItem, {
/**
* Returns this item's text
*/
getText: function() {
if (this.rendered) {
return this.el.dom.innerHTML;
} else {
return this.autoEl.html;
}
}
});
this is nothing big, but since this one got a setter-method in ext3, a getter comes in handy for me ;)
kind regards, tobiu
Ext.override(Ext.Toolbar.TextItem, {
/**
* Returns this item's text
*/
getText: function() {
if (this.rendered) {
return this.el.dom.innerHTML;
} else {
return this.autoEl.html;
}
}
});