PDA

View Full Version : work on tree node without GetU



1 Mar 2012, 9:57 AM
Hi folks...
time ago, with ExtJs 3, I used

myNode.getUI().addClass('change_node_color');

now ... How can I do the same thing with Extjs4 ?????

without getUI() ... I can't get node element...

Can you halp me??

thanks a lot! : )

mark0978
1 Mar 2012, 12:18 PM
Are you asking for getEl?

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.AbstractComponent-method-getEl

vietits
1 Mar 2012, 7:33 PM
Try myNode.set('cls', 'change_node_color');

2 Mar 2012, 1:32 AM
Thanks friends : )



Try myNode.set('cls', 'change_node_color');

work very well!
thanks vietits


getEl( ) is a good idea, but a tree node ( "Ext.data.Record" class ) hasn't getEl() function : (