The SearchParameterManager controller allows restoring parameters that affect the results from e.g. a url.

interface SearchParameterManager {
    state: SearchParameterManagerState;
    subscribe(listener: () => void): Unsubscribe;
    synchronize(parameters: SearchParameters): void;
}

Hierarchy (View Summary)

Methods

Properties

Methods

  • Adds a callback that's invoked on state change.

    Parameters

    • listener: () => void

      A callback that's invoked on state change.

    Returns Unsubscribe

    A function to remove the listener.

  • Updates the search parameters in state with the passed parameters and executes a search. Unspecified keys are reset to their initial values.

    Parameters

    Returns void

Properties

The state relevant to the SearchParameterManager controller.