Add API support for caption positioning in Horizontal and VerticalLayout
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Originally by @jouni
The Horizontal and VerticalLayouts have the functionality on the client side to position the caption on top, left, bottom or right side of the component. The only thing missing is the server side API to control that.
The API needs to be designed. GridLayout and AbsoluteLayout would probably need similar kind of support, but I wouldn't require them to support this at the same time, they can be added later.
See client side source:
https://github.com/vaadin/framework/blob/master/client/src/main/java/com/vaadin/client/ui/orderedlayout/Slot.java#L377-L400
Imported from https://dev.vaadin.com/ issue #12144
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the client-side behavior in client/src/main/java/com/vaadin/client/ui/orderedlayout/Slot.java around lines 377-400, then inspect the server-side HorizontalLayout and VerticalLayout APIs. Define how the API exposes top, left, bottom, and right caption positions; GridLayout and AbsoluteLayout are out of scope for this change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100