Skip to main content

Description

Twigkit factory for getting and setting the location (url).

Methods

addFilterObjectToUrl(filter, reloadSearch)

Method to add a filter to the url

Parameters

Example

addFilterToLocationCopy(fieldName, actual, display, orFilter, location, exclude, match)

Method to add a filter to the url

Parameters

Example

addFilterToUrl(fieldName, actual, display, reloadSearch, orFilter, exclude, match)

Method to add a filter to the url

Parameters

Example

addRangeFilterDisplayToUrl(fieldName, from, to, displayFrom, displayTo, reloadSearch, orFilter, fromExcluded, toExcluded, exclude)

Method to add a filter to the url

Parameters

Example

addRangeFilterToUrl(fieldName, from, to, displayFrom, displayTo, reloadSearch, orFilter, toLabel, fromExcluded, toExcluded, exclude)

Method to add a filter to the url

Parameters

Example

createFilter(fieldName, actual, display, orFilter, exclude, match, type)

Creates a filter for the URL

Parameters

Returns

createFilterFromObject(filter)

Creates a filter for the URL

Parameters

Returns

createRangeFilter(fieldName, from, to, displayFrom, displayTo, orFilter, toLabel, fromExcluded, toExcluded, exclude)

Creates a range filter for the URL

Parameters

Returns

createRangeFilterDisplay(filterName, from, to, display, orFilter, fromExcluded, toExcluded, exclude)

Creates a range filter for the URL

Parameters

Returns

getAllUrlParameters()

Method to get a copy of all URL parameters

Returns

Example

getFiltersFromUrl(fieldName)

Method to gets all of a set of filters from the url

Parameters

Returns

Example

getUrlParameter(parameter, defaultValue)

Method to get a url parameter

Parameters

Returns

Example

getUrlParametersAsArray(parameter, defaultValue)

Method to gets an array of url parameters

Parameters

Returns

Example

removeFiltersFromUrl(filterName, reloadSearch)

Method to remove all of a set of filters from the url

Parameters

Example

removeFiltersFromUrl(filterName, reloadSearch)

Method to remove all of a set of filters from the url

Parameters

Example

resetAllParameters(reloadSearch)

Resets all URL Parameters

Parameters

resetParameters(parameters, reloadSearch)

Resets a selection of parameter types

Parameters

setUrlParameter(parameter, value, reloadSearch)

Method to set a url parameter

Parameters

Example

setUrlParameters(query, reloadSearch)

Method to set a group of url parameters from a query.

Parameters

Example

urlContainsFilter(filterName, actual, display, orFilter, exclude, match)

Method to set if filter is in the url

Parameters

Returns

urlContainsFilterFromObject(filter)

Method to see if filter is in the url

Parameters

Returns