Jump to content

How Expand/Collapse accordion panels by pressing a button


ales2018

Recommended Posts

I'm creating my first unigui application, and this is my first problem. I'd like to be able to expand or collapse an accordion panel by pressing a button.

Accordion mode work perfectly and by pressing on the title the panels collapse and expand as they should, but i need to use a external button.

Someone may help me please!

 

Link to comment
Share on other sites

  • 2 years later...

Collapse

   UniSession.AddJS('Ext.onReady(function () {' + YourPanel.JSName + '.collapse()});');
 

expand

 UniSession.AddJS('Ext.onReady(function () {' + YourPanelJSName + '.expand()});');

  • Like 1
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...