lit-ui-router / RouterContextRequestEvent
Class: RouterContextRequestEvent
Defined in: packages/lit-ui-router/src/context.ts:162
A context-request event for routerContext — the router instance of ContextRequestEvent.
Extends
Constructors
Constructor
ts
new RouterContextRequestEvent(callback, subscribe?): RouterContextRequestEvent;Defined in: packages/lit-ui-router/src/context.ts:167
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | ContextCallback<UIRouterLit> | receives the router from whichever provider answers |
subscribe? | boolean | ask the provider to call back as the router changes |
Returns
RouterContextRequestEvent
Overrides
ContextRequestEvent.constructor
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
callback | readonly | ContextCallback<UIRouterLit> | Called by the provider with the value. | ContextRequestEvent.callback | packages/lit-ui-router/src/context.ts:135 |
context | readonly | RouterContext | The key this request is for, matched by identity. | ContextRequestEvent.context | packages/lit-ui-router/src/context.ts:133 |
subscribe? | readonly | boolean | Whether later values are wanted. | ContextRequestEvent.subscribe | packages/lit-ui-router/src/context.ts:137 |