Newer Version Available
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.
1<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.
Using $Label
Use the $Label global value provider to access labels stored in an external source. For example:
1<ui:inputNumber label="{!$Label.Number.PickOne}" />1{!format($Label.np.labelName, v.name)}