(Quick Reference)

tabs

Purpose

Adds a Vaadin TabSheet component to the parent container.

Examples

<v:tabs>
  <v:tab caption="One">
    <h1>My First Tab</h1>
  </v:tab>
  <v:tab caption="Two" selected="true">
    <div><v:label>My second tab</v:label></div>
  </v:tab>
  <v:tab caption="Three">
    <v:include controller="book" action="list"/>
  </v:tab>
</v:tabs>

Description

The TabSheet component is configured using nested tab tags.

Body

  • tab tags should be specified in the body. Any HTML is ignored.

Attributes

Specific

General
  • var (optional) Uses Grails's set tag to set the value of the specified variable to be this component.
  • class (optional) The CSS class name to add to the component using the addStyleName() method
  • sizeUndefined (optional) Calls setSizeUndefined() on the component. (Attribute value is ignored)
  • sizeFull (optional) Calls setSizeFull() on the component. (Attribute value is ignored)
  • location (optional) The location slot in the parent container to which this component should be added.
  • wrapperClass, wrapperStyle (optional) Special styling for wrapper <div>.

See Vaadin TabSheet API docs for full list of allowed attributes.