TW3EditBox



TW3EditBox


Represents class for standard input HTML object.


TW3EditBox.png

Unit: SmartCL.Controls.EditBox.pas

Hierarchy
TObject
TW3TagObj
TW3Component
TW3MovableControl
TW3CustomControl
W3EditBox


W3CheckBox is a composite component consisted from TW3Label and TW3CheckMark components.

Properties
Property-icon.png AutoCapitalize
Property-icon.png InputType
Property-icon.png PlaceHolder
Property-icon.png Text
Property-icon.png TextAlign

Properties

Property-icon.png AutoCapitalize

Specifies whether first letter will be automatically upper-cased.

property AutoCapitalize: Boolean read getAutoCapitalize write setAutoCapitalize;

Property-icon.png InputType

Specifies type of input control. Different input type enable entering different data types more easily, and prevents invalid inputs.

property InputType: TW3InputType read getType write setType;

Example:

W3EditBox1.InputType:= itRange;

TW3EditBox.itRange.png

W3EditBox1.InputType:= itColor;

TW3EditBox.itColor.png


Remarks:

Not all input types are supported in all browsers, and visual appearance may differ from browser to browser.


See also: TW3InputType

Property-icon.png PlaceHolder

Specifies text placed inside text box, if value of Text property is empty and component is not focused.

TW3EditBox.PlaceHolder.png

property PlaceHolder: String read getPlaceHolder write setPlaceHolder;

This property set placeholder property of DOM object.

Property-icon.png Text

Contains a text string associated with the control.

property Text: String read getText write setText;

Property-icon.png TextAlign

Specifies horizontal alignment of text inside edit.

property TextAlign: TTextAlign read getTextAlign write setTextAlign;

This property changes textAlign property of DOM object.


Example:

W3EditBox1.TextAlign:= taRight;

TW3EditBox.taRight.png