SideNav tabless panel

Forum to discuss the new web client version of Servoy.

SideNav tabless panel

Postby alk » Mon Jan 04, 2021 5:19 pm

Hi,

I would like to use the SideNav Webcomponent.
Checking the example they use a "classic" tab panel, which is not availible in Version 2020.09.
a) I used FormContainer "Tabless Panel" - did not work for me... - any idea?

b) I used TabPanel(with one Tab) - it worked, after changing the code for the part " add Tab from
elements.tabs.removeAllTabs();
to:
elements.tabs.removeTabAt(1);

But now I have the space for the different tabs on the tabPanel, any idea do remove this space?

Thanks
Ralf
alk
 
Posts: 61
Joined: Wed May 21, 2014 8:34 pm
Location: Berlin

Re: SideNav tabless panel

Postby sean » Mon Jan 04, 2021 6:26 pm

Hi Ralf and Happy New Year,

You are correct, the "classic" tabpanel is deprecated in favor of the tabpanel (and tabless) supplied in the bootstrap components package. However, the sidenav component is much easier than that. You don't need any tabpanel components, but rather make the sidenav component occupy the whole area that you want to have content and use the containedForm property to switch forms (best done in the onMenuItemSelected event handler)

Wiki Docs

Finally, there is a small framework which can do all this for you called SvyNavigationUX. I highly recommend this for top-level app navigation. (or at least shows a best-practaice) It can be installed through the package manager's modules section.

Wiki Docs

Good Luck!
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 4 guests