Jump to content

UniTreeMenu Collapse by code


jaosobne

Recommended Posts

Hi,

I set this to unitimer event and it hides menu , but i don't know how long , because that menu container is created dynamically and it changes his ID. It should be better target his ID than class tags .   

unisession.AddJS('{var menu = Ext.ComponentQuery.query("container[cls=x-treelist x-unselectable x-treelist-nav x-treelist-floater]");if (menu.length >0) {Ext.get(menu[0].id).hide();}}');
 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...