Jump to content

How to make Scrollable accordion menu?


Hassan

Recommended Posts

Hi,

 

I am creating an accordion style menu using panel. 

I can have multiple panels with title bar.

Inside each I can have multiple buttons. Therefore, it needs to be scroll-able.

I used UniSimplePanel with AutoScroll set to true.

 

The issue is that UniSimplePanel shows an empty title bar.

I dont need this extra title bar (See attached image and Project).

 

My question is, is there a way to remove title bar from UniSimplePanel? 

Alternatively, is there a way to make UniPanel scroll-able?

 

Unigui:1.10.0.1469

 

Thanks.

post-4608-0-52939600-1530817728_thumb.png

ScrollableAccordionLayout.zip

Link to comment
Share on other sites

Hi,

 

The issue is that UniSimplePanel shows an empty title bar.

I dont need this extra title bar (See attached image and Project).

 

My question is, is there a way to remove title bar from UniSimplePanel?

 

Need to analyze, but in this case you can try to use this approach:

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  UniSimplePanel1.JSInterface.JSCall('header.hide', []);
  UniSimplePanel2.JSInterface.JSCall('header.hide', []);
end;
Alternatively, is there a way to make UniPanel scroll-able?
 
For example, for UniPanel4
 
1.
post-906-0-19425200-1530819646_thumb.png
 
2. UniPanel4
 
  Layout -> column
function beforeInit(sender, config)
{
    config.scrollable=true;
}
Try...
 
  • Upvote 1
Link to comment
Share on other sites

  • 9 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...