Jump to content

Title visibility in the accordion panels


marcos.digirotas

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!

Link to comment
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

Link to comment
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).

Link to comment
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();
}

 

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...