|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--GroupField
Defined in form.js
| Field Summary | |
Array |
grp
Members of the group |
String |
label
Label of the group |
Boolean |
multiple
The group accepts multiple choice or not |
String |
name
Name of the group |
<private> Object |
self
|
String |
type
Type of the group members |
| Constructor Summary | |
GroupField
(<Object> grp)
The GroupField class encapsulate operations over grouped elements, which are sets of form inputs with the same name, accepting single choice (radio button groups) or multiple choice (checkbox groups) |
|
| Method Summary | |
void
|
clear()
Unselect the selected option(s) in the group |
void
|
focus()
Move the focus to the first enabled member of the group |
Array
|
getFormElement()
Return the array of group members |
Object
|
getValue()
Return the current value of the group. |
Number
|
invert()
Invert group members state. |
Boolean
|
isEmpty()
Verifies if the group has a selected value (or values) |
String
|
serialize()
Serialize the name of the group and the selected value(s). |
void
|
setAll(<Boolean> b)
Change all group members to a given state |
void
|
setDisabled(b)
Enables/disables all elements in the group |
void
|
setValue(<Object> val)
Changes the selected option(s) of the group. |
| Field Detail |
Array grp
String label
Boolean multiple
String name
<private> Object self
String type
| Constructor Detail |
GroupField(<Object> grp)
grp - Group of fields
| Method Detail |
void clear()
void focus()
Array getFormElement()
Object getValue()
Number invert()
Boolean isEmpty()
String serialize()
void setAll(<Boolean> b)
b - State
void setDisabled(b)
void setValue(<Object> val)
val - New value
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||