Filter module for Engine framework.
{
"roles": ENGINE_ROLES,
"name": "instance_name",
"config": {},
"module": "github_ionicabizau_filters_v0.0.1",
"O": {
"events": [{
"re": "^filtersSet$",
"A": {
"emit": [{
"event": "filtersSet",
"to": "..."
}]
}
}]
}
}
The module needs the following model queries:
{
"name": "read",
"request": {
"method": "find"
},
"add": {
"options": "o",
"query": "q"
}
}
Not stable yet
Sets the query and options in filter instance
event
: The event objectdata
: An object containing the following fields:query
{Object} The object containing the query fields that will be mergedoptions
{Object} The object containing the option fields that will be merged_qReset
{Boolean} if true, the query object will be emptied_oReset
{Boolean} if true, the options object will be emptied
setFilters
- callssetFilters
method
filtersSet
- after setting the filtersdata:read
- after receiving data from server
See the LICENSE file.