PDA

View Full Version : How can i add statusbar to TreeLoader?



Zanisimo
7 Jan 2011, 2:41 AM
I want to add a simple status message in status bar when i click on folder and tree loads its children. Also i would like to add mask too.

I think that there is a easy solution, bet i can't google it.

Condor
7 Jan 2011, 3:03 AM
Put a Ext.Toolbar.TextItem on the toolbar:

bbar: [{
xtype: 'tbtext',
id: 'mymessage'
}]
And change it's text:

Ext.getCmp('mymessage').setText('Status: Done');

Masking:

tree.getEl().mask('Please wait...');
...
tree.getEl().unmask();