- Description
- Methods
- clearQueries()
- convertHttpParamsToQuery(httpParams)
- convertHttpParamsToUrl(httpParams)
- convertQueryToHttpParams(query, excludeHiddenFilters)
- convertQueryToUrl(query, includeHiddenFilters)
- convertSortObjectToParam()
- convertSortParamToObject()
- getQuery(name)
- getQueryAsHttpParams(name, excludeHiddenFilters)
- queryContainsFilterForField(query, fieldName, filter)
- removeFiltersForField(query, fieldName)
- setQuery(name, value)
- Events
Description
Twigkit service for queries
Methods
-
Will remove all the queries from the factory.
QueryService.clearQueries();
-
Converts http params to query value..
Param Type Details httpParams object The httpParams of the query.
QueryService.convertHttpParamsToQuery(value);
-
Converts http params into a URL.
Param Type Details httpParams object A query object as http params
QueryService.convertHttpParamsToUrl(query, true);
-
Converts an object based query to HTTP Params.
Param Type Details query object Query to convert
excludeHiddenFilters (optional)boolean Whether to include hidden filters in the params.
object Returns the query object as http params.
QueryService.convertQueryToHttpParams(query);
-
-
Will convert sort object into an parameter.
QueryService.convertSortObjectToParam(obj);
-
Will convert sort parameter into an object.
QueryService.convertSortParamToObject(param);
-
-
Gets the value of the query from the factory. If no query is found, the factory will return null.
Param Type Details name string Name of the query to retrieve.
excludeHiddenFilters (optional)boolean Whether to include hidden filters in the params.
object Returns the query object, if no query object exists it will return null.
QueryService.getQueryAsHttpParams(name);
-
-
-
Events
-
When the query is set or changed Lightning will broadcast this message where name is the name of your query
query_name_updated
broadcastroot scope