(Deprecated) UrlManager
(Deprecated) UrlManager
The UrlManager
controller can parse an url fragment to extract search parameters which affect the search response.
Methods
synchronize
Updates the search parameters in state with those from the url & launches a search.
Parameters
-
fragment:
string
The part of the url that contains search parameters. E.g.,
q=windmill&f[author]=Cervantes
subscribe
Adds a callback that will be called on state change.
Parameters
-
listener:
() ⇒ void
A callback to be invoked on state change.
Returns Unsubscribe
: An unsubscribe function to remove the listener.
Attributes
state
The state relevant to the UrlManager
controller.
Properties
-
fragment:
string
The part of the url that contains search parameters. E.g.,
q=windmill&f[author]=Cervantes
Initialize
buildUrlManager
Creates a UrlManager
controller instance.
Parameters
-
engine:
Engine<Partial<SearchParametersState> & ConfigurationSection>
The headless engine.
-
props:
UrlManagerProps
The configurable
UrlManager
properties.
Returns UrlManager
UrlManagerProps
The configurable UrlManager
properties.
Properties
-
initialState:
UrlManagerInitialState
The initial state that should be applied to the
UrlManager
controller.
UrlManagerInitialState
The initial state that should be applied to the UrlManager
controller.
Properties
-
fragment:
string
The part of the url that contains search parameters. E.g.,
q=windmill&f[author]=Cervantes
Related Types
Unsubscribe
Call signatures
-
(): void