-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TabSheet internal tabs customization #5232
Comments
We could consider exposing |
Yeah a getter would work, I'm not sure why I didn't just propose that. |
There is an alternative TabSheet component in Directory which has a feature of vertical Tabs https://vaadin.com/directory/component/tabsheet |
I would prefer to stick with the official component for easier upgrades down the road. |
Additional context: #5370 |
I'm not sure if exposing For example, with the following var tabsheet = new TabSheet();
tabsheet.setPrefixComponent(new Span("Prefix"));
tabsheet.setSuffixComponent(new Span("Suffix"));
tabsheet.add("Tab one", new Span("Tab one content"));
tabsheet.add("Tab two", new Span("Tab two content"));
add(tabsheet); If you try to make the Tabs vertical with ...which is probably not what you wanted here. Vertical ![]() |
@tomivirkki you're right, I knew something didn't look quite right but it took your screenshots for me to realize. I have since gone with a different layout so I'm not sure what you want to do with this open issue. |
I also would like to see |
Easy workaround: vaadin-tabsheet {
flex-direction: row;
} |
Describe your motivation
I wanted to be able to set the tabs orientation to vertical.
Describe the solution you'd like
maybe add a method to allow to customize the tabs instance in case further methods become available:
In the class TabSheet:
my usage to set vertical orientation would be
Describe alternatives you've considered
I'm using reflection for now 🤮:
Additional context
No response
The text was updated successfully, but these errors were encountered: