lit-ui-router / SrefStatusControllerOptions
Interface: SrefStatusControllerOptions
Defined in: packages/lit-ui-router/src/sref-status-controller.ts:30
Options for SrefStatusController: which state to watch, plus the router to watch it in.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
options? | TransitionOptions | Transition options; relative defaults to the enclosing view's state | SrefTargetParams.options | packages/lit-ui-router/src/sref-active.ts:43 |
params? | RawParams | State parameters to match | SrefTargetParams.params | packages/lit-ui-router/src/sref-active.ts:41 |
router? | UIRouter | The UIRouter instance to observe. When omitted, the controller discovers the router from an ancestor <ui-router> (or <ui-view>) via the ui-router-context event when the host connects. Passing it explicitly also moves the first status computation into the constructor, so the status is there for the very first render and needs no DOM — the hand-off an element-less environment has no other way to make. | - | packages/lit-ui-router/src/sref-status-controller.ts:43 |
state? | string | The state name to check for active status | SrefTargetParams.state | packages/lit-ui-router/src/sref-active.ts:39 |