| Package | com.jwopitz.controls |
| Class | public class TextInput |
| Inheritance | TextInput mx.controls.TextInput |
The <jwo_lib:TextInput> tag inherits the attributes
of its superclass and adds the following attributes:
<jwo_lib:TextInput
Properties
showClearButton="false|true"
Styles
horizontalGap="5"
Events
clear="No default"
/>
See also
| Property | Defined by | ||
|---|---|---|---|
| appearAsLabel : Boolean
Flag indicating if once the component has lost focus, it should appear as a label, removing the border and clear button.
| TextInput | ||
| focusOnClear : Boolean
Flag indicating if the text field should gain focus after a clear event.
| TextInput | ||
| prompt : String
Indicator string located at the end of the text when
labelMode = true. | TextInput | ||
| showClearButton : Boolean
Flag indicating whether or not to show the clear button for the text field.
| TextInput | ||
| Property | Defined by | ||
|---|---|---|---|
| labelMode : Boolean
Flag that tells internal methods if component is in label mode or edit mode.
| TextInput | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Triggered when the user clicks the clear button. | TextInput | |||
| appearAsLabel | property |
appearAsLabel:Boolean [read-write]Flag indicating if once the component has lost focus, it should appear as a label, removing the border and clear button. The default value is true.
This property can be used as the source for data binding.
Implementation public function get appearAsLabel():Boolean
public function set appearAsLabel(value:Boolean):void
| focusOnClear | property |
focusOnClear:Boolean [read-write]Flag indicating if the text field should gain focus after a clear event. The default is true.
Implementation public function get focusOnClear():Boolean
public function set focusOnClear(value:Boolean):void
| labelMode | property |
labelMode:Boolean [read-write]Flag that tells internal methods if component is in label mode or edit mode. This gets set in the focus event handlers.
Implementation protected function get labelMode():Boolean
protected function set labelMode(value:Boolean):void
| prompt | property |
prompt:String [read-write]
Indicator string located at the end of the text when labelMode = true.
Default value is " (edit)".
This property can be used as the source for data binding.
Implementation public function get prompt():String
public function set prompt(value:String):void
| showClearButton | property |
showClearButton:Boolean [read-write]Flag indicating whether or not to show the clear button for the text field.
This property can be used as the source for data binding.
Implementation public function get showClearButton():Boolean
public function set showClearButton(value:Boolean):void
| clear | event |