PDA

View Full Version : Ext.Toolbar.TextItem -> getText()



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;
}
}
});

tobiu
13 Aug 2010, 8:46 AM
just wondering that this one still has not found its way into the framework.
i even put it into my signature :P


kind regards
tobiu

devtig
27 Sep 2010, 5:53 AM
I expected it in the framework too. Tobias' override goes into my ExtOverrides.js for now.

devtig
18 Oct 2010, 5:43 AM
Ext.Toolbar.TextItem.getText remains in my ExtOverrides.js because getText's not included in 3.3.0 yet.

devtig
1 Dec 2010, 5:59 AM
Ext.Toolbar.TextItem.getText not included in 3.3.1

tobiu
1 Dec 2010, 6:13 AM
it might make sense to move this topic to feature requests ;)


kind regards
tobiu