Horizontal image picker vaadin
Question
I want to display a horizontal combo box in Vaadin. Is it possible to do that? If no, what is the best component to put in a custom component to accomplish this task? Like a Button that I change CSS for onClick or a Resource using another listener to highlight.
Solution
You can do something like that just by composing components: a HorizontalVertical
or a VerticalLayout
as the root layout, Image
components to display the images and then add a LayoutClickListener
to the layout to get the selected/clicked image. To highlight a selected Image
you can add a style name for that in your LayoutClickListener
.
There are also addons available in Vaadin Directory, which might be suitable for your needs:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow