Newer Version Available

This content describes an older version of this product. View Latest

Input Component Labels

A label describes the purpose of an input component. To set a label on an input component, use the label attribute.

This example shows how to use labels using the label attribute on an input component.

1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<ui:inputNumber label="Pick a Number:" value="54" />

The label is placed on the left of the input field and can be hidden by setting labelClass="assistiveText". assistiveText is a global style class used to support accessibility.