ales2018 Posted June 22, 2018 Share Posted June 22, 2018 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 More sharing options...
Sherzod Posted June 22, 2018 Share Posted June 22, 2018 Hi, Thank you for your interest in UniGUI! You can use Collapsed property of UniPanels Link to comment Share on other sites More sharing options...
ales2018 Posted June 22, 2018 Author Share Posted June 22, 2018 Thank you so much for the quick reply, you know, I was convinced that I had already tried that property, but in reality i tried the property "Collapsible" and it had no effect. Thanks again Link to comment Share on other sites More sharing options...
alex_v Posted August 27, 2020 Share Posted August 27, 2020 I am also interested in this problem. How to open a non-first accordion panel at runtime? Link to comment Share on other sites More sharing options...
azago Posted August 27, 2020 Share Posted August 27, 2020 Collapse UniSession.AddJS('Ext.onReady(function () {' + YourPanel.JSName + '.collapse()});'); expand UniSession.AddJS('Ext.onReady(function () {' + YourPanelJSName + '.expand()});'); 1 Link to comment Share on other sites More sharing options...
alex_v Posted August 28, 2020 Share Posted August 28, 2020 thank you, it works. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now