dTabs Add-on
dTabs is a multicomponent container that allows switching between the components with "tabs"
dTabs is a Vaadin TabSheet clone with some functionality:
- enable to put tab bar bottom of container,
- shortcut functions for positioning tab bar,
- enable to sort tabs by caption.
Sample code
StringGenerator sg = new StringGenerator(); Resource icons[] = { FontAwesome.AMBULANCE, FontAwesome.HAND_PAPER_O, FontAwesome.LIGHTBULB_O, FontAwesome.SEND_O, FontAwesome.TV }; DTabs tabs = new DTabs(); tabs.setTabBarBottom(true).setFramedTabs(true); for (int index = 1; index <= 5; index++) { String tabcaption = sg.nextString(true) + " " + sg.nextString(false); VerticalLayout content = new VerticalLayout(); content.setMargin(true); content.setSpacing(true); content.addComponent(new Label("Content for tab " + index)); if (index == 2) { content.addComponent( new Label("Excepteur sint obcaecat cupiditat non proident culpa. Magna pars studiorum, prodita quaerimus.")); } Tab tab = tabs.addTab(content, tabcaption); tab.setClosable(true); tab.setEnabled(true); tab.setIcon(icons[index - 1]); // First tab is always visible if (index == 1) { tab.setEnabled(true); tab.setClosable(false); } }
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Enable to exclude tabs from sorted tabs.
- Released
- 2016-12-18
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.6+
- Browser
- Firefox
- Opera
- Safari
- Google Chrome
- Internet Explorer
- iOS Browser
- Android Browser
- Internet Explorer
- Internet Explorer
- Windows Phone
dTabs Add-on - Vaadin Add-on Directory
dTabs is a multicomponent container that allows switching between the components with "tabs"dTabs is a Vaadin TabSheet clone with some functionality:
- enable to put tab bar bottom of container,
- shortcut functions for positioning tab bar,
- enable to sort tabs by caption.
Discussion ForumAuthor Homepage
Online Demo
Issue Tracker
Source Code
dTabs Add-on version 0.1.0
null
dTabs Add-on version 0.3.0
Code clean up.
dTabs Add-on version 0.4.0
Code clean up.
dTabs Add-on version 0.5.0
null
dTabs Add-on version 0.6.0
null
dTabs Add-on version 0.7.0
Enable tabs sorting by its caption: ascending or descending.
dTabs Add-on version 0.9.0
Enable to exclude tabs from sorted tabs.