Inject this mixin in a route-driven controller in order to be able to update query params with a debounce.

Show:
_checkQueryParamsPresence
(
  • param
)
Boolean
protected

Check if the provided debounce param is an existing query param

Parameters:

  • param String
    • the name of the original query param

Returns:

_debounceParamName
(
  • originalParamName
)
String
protected

Return the original param name from the debounce param name

Parameters:

  • originalParamName String
    • the name of the property to update

Returns:

_originalParamName
(
  • debounceParamName
)
String
protected

Return the original param name from the debounce param name

Parameters:

  • debounceParamName String
    • the name of the property to update

Returns:

_paramUpdate
(
  • context
  • debounceParamName
)
protected

Decounce the query param update

Parameters:

  • context Object
    • the name of the property to update
  • debounceParamName String
    • the name of the property to update in the format _debounceParamNameSuffix + ParamName
_setupDebounceQueryParams () protected

Create an observer for each of the properties in debounceQueryParams Note : Use setupController in route to force debounce param update when param is set derectly from the URI

_updateQueryParam
(
  • param
  • value
)
protected

Update the underneath property hence the query param

Parameters:

  • param String
    • the name of the property to update
  • value String
    • the new value of the property to update
init ()

Setup the controller for debouncing query param by calling _setupDebounceQueryParams

_debounceParamNameSuffix

String protected

The default debounce name suffix

Example : search param will generate debounceSearch attribute


Default: "debounce"