framework icon indicating copy to clipboard operation
framework copied to clipboard

How to implement Tab-Design with Vaadin Navigator

Open mrhnrk opened this issue 8 years ago • 4 comments

Hello,

I want to create a UI with the Tab-Design. The key feature is that one view can be opened multiple times.

The UI view container is a tab sheet and contains all opened views. The tab sheet is used only for switching between opened views. A navigation bar is used to open a new view as tab. I want also use this with Spring Boot!

See example: tab-design-example

How can I implement this with vaadin without implementing an custom solution (routing etc.)?

mrhnrk avatar Feb 26 '18 14:02 mrhnrk

I actually wrote an implementation of this awhile ago in Vaadin 7, if I get a chance I will upload a Vaadin 8 version to github and link it here.

I basically extended TabSheet, with a custom ViewDisplay and Navigator, and when a user would try to navigate to a URL (or click the menu button corresponding to a particular View / Tab), the TabSheet would either switch to that particular Tab if it was available, or create one.

wodencafe avatar Feb 26 '18 15:02 wodencafe

Hi, actually you will get more answers/support on forum , since it's not an issue : ) https://vaadin.com/forum

anasmi avatar Feb 27 '18 06:02 anasmi

Hello, thanks for the replies! I have created a topic in the forum now.

mrhnrk avatar Feb 27 '18 07:02 mrhnrk

If anyone has the same problem, look at the new Vaadin 10. With it you can build a Tab-Designed application.

Worked for me: Use @SpringComponene and @RequestScope instead of @Route() and build a navigation RootLayout that has a Tabs components with your open pages (see documentation and scroll down to Tabs with pages).

mrhnrk avatar Mar 13 '18 15:03 mrhnrk