|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Field
Defined in form.js
| Field Summary | |
Object |
fld
Holds the form element instance |
String |
id
Element id |
Object |
label
Element label |
String |
name
Element name |
String |
type
Element type |
| Constructor Summary | |
Field
(<Object> fld)
This is the base class of the Field hierarchy. |
|
| Method Summary | |
Bool
|
beforeFocus()
Perform tasks and run validations before activating the field |
void
|
clear()
Clears the value of the field |
void
|
disable()
Disables the field |
void
|
enable()
Enables the field |
Object
|
focus()
Move focus to the field. |
{Object}
|
getFormElement()
Retorna o elemento HTML associado ao objeto |
Mask
|
getMask()
Retrieve the mask object associated with the field |
Object
|
getValue()
Returns the current value of the field |
Boolean
|
isEmpty()
Check whether the field contains an empty value |
String
|
serialize()
Serialize field's name and value so that the returning value can be used to build query strings or HTTP requests |
<private> void
|
setDisabled(<Boolean> b)
Internal method to disable/enable the field |
void
|
setValue(<Object> val)
Sets the value of the field |
<static> Object
|
fromFormElement(<Object> elm)
Create a Field object from a given form element |
| Field Detail |
Object fld
String id
Object label
String name
String type
| Constructor Detail |
Field(<Object> fld)
fld - Field object
| Method Detail |
Bool beforeFocus()
Field - element
void clear()
void disable()
void enable()
Object focus()
{Object} getFormElement()
Mask getMask()
Object getValue()
Boolean isEmpty()
String serialize()
<private> void setDisabled(<Boolean> b)
b - Flag value
void setValue(<Object> val)
val - New value
<static> Object fromFormElement(<Object> elm)
elm - Form input element
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||