See Also

This class has no related objects.

Enumerations

Name Values
FieldTypes Text
Color
Date
DateTime
DateTimeLocal
Email
Number
Password
Telephone
Time
Url
Week
States Unvalidated
Valid
Invalid

Constants

Name Type Value

This class exposes no constants.

Events

Definition Description

This class exposes no events.

Methods

Definition Description
LabelClick() Raised when the user clicks the label.
ValueChanged() Raised when the user changes the value of the field.

Properties

Name Type Default Value Description
FieldStyle WebStyle Nil Style applied to the field portion of the class.
Label String Caption of the label portions of the class. Supports FontAwesome icons.
LabelStyle WebStyle Nil Style applied to the label portion of the class.
Placeholder String “” Placeholder text.
ReadOnly Boolean False If True users cannot edit the contents of the field.
State States Unvalidated The validation state of the field.
Type FieldTypes Text The type of field, not all types are supported by all browsers.
Value String “” The value of the field. Updates on focus loss to reduce communication with the server.

Examples

State

This snippet changes the state of the field based on the length of the field's text:

if me.Value.Len > 3 then
  me.State = GraffitiWebTextField.States.Valid
elseif me.Value.Len > 0 then
  me.State = GraffitiWebTextField.States.Invalid
else
  me.State = GraffitiWebTextField.States.Unvalidated
end if

Notes

This class currently has no notes.