|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Field
|
+--ComponentField
|
+--EditSearchField
Defined in form/editsearchfield.js
| Field Summary | |
Boolean |
autoDispatch
Auto dispatch flag |
Boolean |
autoTrim
Auto trim flag |
Object |
button
Search button |
Boolean |
debug
Debug flag |
Object |
filters
Select input that contains the search filters |
Object |
hideAlerts
|
Number |
loadIdx
Initial option index to load the returned results |
Array |
masks
List of filter masks |
String |
requestUrl
Search URL |
Object |
results
Results select input |
Object |
search
Search term input |
| Fields inherited from class ComponentField |
componentClass
|
| Fields inherited from class Field |
fld, id, name, label, type
|
| Constructor Summary | |
EditSearchField
(<String> id, <String> results, <Array> masks, <Number> loadIdx, <String> reqUrl, <Boolean> autoTrim, <Boolean> autoDispatch, <Boolean> debug, <String> initOption)
The EditSearchField component consists in a select input whose options are loaded from a simple search (filter name and search term) executed through a JSRS request |
|
| Method Summary | |
void
|
clear()
Clear the component's value |
void
|
focus()
Focus the first element of the component |
Object
|
getValue()
Returns the selected option's value |
void
|
setDisabled(<Boolean> b)
Disables/enables the component |
void
|
setup()
Execute all the initialization routines for this form component |
void
|
setValue(<String> val)
Define the list selected option |
void
|
submit(<String> initOption)
Validates and submits the search. |
Boolean
|
validate()
Validates the search term's value, based on the mask of the active filter |
| Methods inherited from class ComponentField |
raiseEvent
|
| Methods inherited from class Field |
getFormElement, getMask, isEmpty, enable, disable, beforeFocus, serialize
|
| Field Detail |
Boolean autoDispatch
Boolean autoTrim
Object button
Boolean debug
Object filters
Object hideAlerts
Number loadIdx
Array masks
String requestUrl
Object results
Object search
| Constructor Detail |
EditSearchField(<String> id, <String> results, <Array> masks, <Number> loadIdx, <String> reqUrl, <Boolean> autoTrim, <Boolean> autoDispatch, <Boolean> debug, <String> initOption)
id - Component ID
results - Results SELECT name
masks - Lists of filter masks
loadIdx - Initial option index for the returned search results
reqUrl - Search URL. Defaults to REQUEST_URI
autoTrim - Auto trim search term before sending the search request
autoDispatch - Auto dispatch search when loading the component
debug - JSRS debug flag
initOption - Option to be selected after performing the search (only when autoDispatch==true)
| Method Detail |
void clear()
void focus()
Object getValue()
void setDisabled(<Boolean> b)
b - Flag value
void setup()
void setValue(<String> val)
val - Option to be selected
void submit(<String> initOption)
initOption - Option to be selected after performing the search
Boolean validate()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||