Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
/ paged-tabs Public archive
forked from alejandro-du/paged-tabs

A tabs component to show a page when a tab is clicked - https://vaadin.com/directory/component/paged-tabs

License

Notifications You must be signed in to change notification settings

nils-bauer/paged-tabs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on Vaadin  Directory Stars on vaadin.com/directory

paged-tabs

Current Vaadin's Tabs component doesn't include an API to show a Component when a tab is clicked. You have to code the logic to show and hide components depending on the selected tab. This component frees you from implementing such logic. Here's an example:

PagedTabs tabs = new PagedTabs();
tabs.add(component, "Tab caption 1");
tabs.add(component2, "Tab caption 2");

You can make a tab closable as follows:

PagedTabs tabs = new PagedTabs();
tabs.add(new Span("Close me"), "Closeable");

You can use the Tab class as well if, for example, you want to add components to the tab itself:

Tab tab = new Tab();
tab.add(new Span("Tab caption"), new Button("Click me"));
PagedTabs tabs = new PagedTabs();
tabs.add(new Span("Tab content"), tab);

About

A tabs component to show a page when a tab is clicked - https://vaadin.com/directory/component/paged-tabs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%