Skip to content

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

ParameterTypeDescription
callbackContextCallback<UIRouterLit>receives the router from whichever provider answers
subscribe?booleanask the provider to call back as the router changes

Returns

RouterContextRequestEvent

Overrides

ts
Event.constructor

Properties

PropertyModifierTypeDefault valueDescriptionDefined in
callbackreadonlyContextCallback<UIRouterLit>undefinedCalled by the provider with the router.packages/lit-ui-router/src/context.ts:133
contextreadonlyRouterContextrouterContextAlways routerContext.packages/lit-ui-router/src/context.ts:131
subscribe?readonlybooleanundefinedWhether later values are wanted.packages/lit-ui-router/src/context.ts:135