marcos.digirotas Posted May 21, 2019 Share Posted May 21, 2019 Hi! We are using an accordion layout to position some panels and we would like to control the collaps of the panels by buttons located inside these panels. We tried to unselect the property "titleVisible" of the panels on the ObjectInspector, but this didn't have effect. Is there a way to to this? Alternatively, if it isn't possible to hide it, is there a way to remove the -/+ icon, and the click event of the title ? Thanks in advance! Link to comment Share on other sites More sharing options...
Sherzod Posted May 21, 2019 Share Posted May 21, 2019 1 hour ago, marcos.digirotas said: We are using an accordion layout to position some panels and we would like to control the collaps of the panels by buttons located inside these panels. Hi, http://forums.unigui.com/index.php?/topic/10779-how-expandcollapse-accordion-panels-by-pressing-a-button/&do=findComment&comment=56872 ? Link to comment Share on other sites More sharing options...
marcos.digirotas Posted May 22, 2019 Author Share Posted May 22, 2019 Hi Sherzod, The control of the collaps by button is ok... The doubt is (1) how to hide the title panel of an a accordion layout item? If it isn't possible (2) how to hide the icon +/- located at the title of the panel, and (3) how to disable the click on the title panel. My objective is to control the collaps/expand of the panels only through my buttons (located at each item of the accordion panel). Link to comment Share on other sites More sharing options...
Sherzod Posted May 22, 2019 Share Posted May 22, 2019 3 hours ago, marcos.digirotas said: If it isn't possible (2) how to hide the icon +/- located at the title of the panel, and (3) how to disable the click on the title panel. Hi, One possible solution. Panel -> ClientEvents -> UniEvents -> function beforeInit: function beforeInit(sender, config) { config.titleCollapse=false; } Panel -> ClientEvents -> ExtEvents -> function afterrender: function afterrender(sender, eOpts) { sender.collapseTool.hide(); } Link to comment Share on other sites More sharing options...
marcos.digirotas Posted May 22, 2019 Author Share Posted May 22, 2019 Hi Sherzod, It worked perfectly! Now the panels title are without the icon and are not clickable to collaps. By the way... is there a way to hide the panel title? Is it a bug the property "titleVisible" of the panels on the ObjectInspector does not have effect. Thank you so much! Link to comment Share on other sites More sharing options...
Sherzod Posted May 23, 2019 Share Posted May 23, 2019 On 5/22/2019 at 10:27 PM, marcos.digirotas said: By the way... is there a way to hide the panel title? Is it a bug the property "titleVisible" of the panels on the ObjectInspector does not have effect. Hi, I assume that in such a layout, the header should always displayed. 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