readonly - Read Only

Generates a span element instead of a label element.

Note: This property is new with Release 9.0.1.

Category

accessibility

Syntax

readonly="true|false"

Usage

In Design mode, click the top tab under Properties and look for Read-only, or click All Properties and look for readonly under accessibility.

By default, a label element is generated.

This property supports assistive technologies. Set it to true when the for property of the containing control points to a read-only control.

Examples

This example sets the Label read-only for a read-only Edit Box.
<xp:panel style="height:99.0px">
	<xp:label for="inputText1" value="foo" readonly="true" />&#160;
	<xp:inputText id="inputText1" readonly="true" defaultValue="foo" />
</xp:panel>