Skip to content

lit-ui-router / TransitionControllerOptions

Interface: TransitionControllerOptions ​

Defined in: packages/lit-ui-router/src/transition-controller.ts:71

Options for TransitionController.

Properties ​

PropertyTypeDescriptionDefined in
callback?TransitionCallbackInvoked before host.requestUpdate() whenever an observed event fires, and once each time the host connects (see TransitionCallbackReason).packages/lit-ui-router/src/transition-controller.ts:102
criteria?HookMatchCriteriaHookMatchCriteria limiting which transitions notify the host. Defaults to {} (all transitions).packages/lit-ui-router/src/transition-controller.ts:89
events?TransitionEventType[]The transition lifecycle events to observe. Defaults to ['onSuccess'].packages/lit-ui-router/src/transition-controller.ts:96
router?UIRouterThe UIRouter instance to observe. When omitted, the controller discovers the router from an ancestor <ui-router> (or <ui-view>) each time the host connects, and follows the placeholder router a <ui-router> mints for itself to the one that replaces it, synchronizing again with the 'hostConnected' reason.packages/lit-ui-router/src/transition-controller.ts:81