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! Quote 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 Quote 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 Quote 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? Quote 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 Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.