FormField
|
+--TextField
public class TextField
extends FormField
Field Summary | |
---|---|
mixed | The maximum permitted length of the text. |
mixed | The minimum permitted length of the text. |
mixed | The display length of the text. |
Fields inherited from FORMfields.fields.FormField | |
---|---|
autoPropagate, data, disableEnterHandler, displayValuesOnNewLine, editable, enabled, endingString, enterTabHandler, enterTabs, error, extraHtml, fieldBelowLabel, formError, help, hidden, htmlify, id, isData, label, labelForId, multiValues, name, required, subFieldDisplayValueSeparator, subFieldSeparator, subFieldValueSeparator, subFields, subFieldsCannotBeEmpty, trimWhitespace, validators, value, valueIsHtml |
Constructor Summary | |
---|---|
TextField(string name, string label, int required, int maxLength, int minLength, int size) Constructs a new TextField. |
|
__construct(string name, string label, int required, int maxLength, int minLength, int size) Constructs a new TextField. |
Method Summary | |
---|---|
string | Returns the HTML of this editable text field. |
boolean | isValid() Returns true if the contents of this field are valid and the length of the text is within minLength and maxLength. |
public mixed $maxLength = null
The maximum permitted length of the text.
public mixed $minLength = null
The minimum permitted length of the text.
public mixed $size = null
The display length of the text.
public TextField(string name, string label, int required, int maxLength, int minLength, int size)
Constructs a new TextField.
public string getEditableFieldTag()
Returns the HTML of this editable text field.
public boolean isValid()
Returns true if the contents of this field are valid and the length of the text is within minLength and maxLength.
TextField is a field that allows for the editing of a single line of text.