Text Field

Purpose

This component provides a form control that allows the user to enter a short text.

Exported Features

cf2:ui.TextField

Imported Features

cf2:ObservablePropertySet

Markup

This component is provided by the ui:textfield element.

Properties

The following table lists the observable properties associated with this component.

Property Description Type Access
maxlength The maximum number of characters allowed in the field. The initial value of this property can be specified by the maxlength attribute on the ui:textfield element. The value of the property defaults to null, i.e. there is no limit. integer read/write
value The value of the field, i.e. the string that is visible in the field. The initial value of this property can be specified by the value attribute on the ui:textfield element. The value of the property defaults to an empty string. String read/write

Fallback

If this component is not supported, then it falls back to a static text input field.

Related topics