Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Designing UIs Declaratively

Matthias Marias
7 years ago Aug 22, 2015 9:23pm
Marko Grönroos
7 years ago Aug 23, 2015 8:21am

Essentially, all components and all properties are supported.

Unfortunately, the attributes are not documented anywhere currently. It was at some point planned that they would be documented in the API docs (not the book), but that hasn't been done yet. You're welcome to make wishes regarding that, as it's rather unclear which would be the one place to document them.

Mostly, they are direct mappings from the property name to the attribute, but some components have special names or handling for some attributes. For example, for images there is an "alt" attribute, which is mapped to alternateText property in the Java API. Such irregular attributes are handled in the readDesign() and writeDesign() methods of each class.

The resource of an image is set with the src attribute, which should point to a resource locator:

<v-image src="theme://somepic.gif" alt="Some image from the theme"/>
Matthias Marias
7 years ago Aug 23, 2015 5:35pm
Ted Rex
7 years ago Mar 01, 2016 8:19pm
Ievgen Anikushyn
5 years ago Jun 16, 2017 3:42pm
Ievgen Anikushyn
5 years ago Jun 16, 2017 3:50pm