Jump to content
uniGUI Discussion Forums
marcos.digirotas

Title visibility in the accordion panels

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites
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();
}

 

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×