Tobago Demo

Menu

Label

With <tc:label/>, a single label can be created. Some components already have a label attribute to combine it with a label, which should be used in general.

Tag Library Documentation

Basics

<tc:label value="Single Label"/>

for-attribute

A label can be linked to a component using the for attribute.

Input Field

With <tc:flexLayout columns="250px 1fr 200px"> a label is set in front and after an input field. The label attribute is not used for <tc:in/>.

Automatic Label

Progress Bar

Some components like <tc:progress/> do not have a label attribute. In this example, a label is combined with a progressbar using <tc:flowLayout/>.

© 2005-2023 Apache Software Foundation, Licensed under the Apache License, Version 2.0.