lit-ui-router / RouterContextRequestEvent
Class: RouterContextRequestEvent
Defined in: packages/lit-ui-router/src/context.ts:126
A context-request event for routerContext: bubbling, composed and shaped as the protocol specifies, so any provider answers it.
Extends
Event
Implements
Constructors
Constructor
ts
new RouterContextRequestEvent(callback, subscribe?): RouterContextRequestEvent;Defined in: packages/lit-ui-router/src/context.ts:141
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
ts
Event.constructorProperties
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
callback | readonly | ContextCallback<UIRouterLit> | undefined | Called by the provider with the router. | packages/lit-ui-router/src/context.ts:133 |
context | readonly | RouterContext | routerContext | Always routerContext. | packages/lit-ui-router/src/context.ts:131 |
subscribe? | readonly | boolean | undefined | Whether later values are wanted. | packages/lit-ui-router/src/context.ts:135 |