lit-ui-router / SrefStatusDirective
Abstract Class: SrefStatusDirective<Params>
Defined in: packages/lit-ui-router/src/sref-active.ts:60
What srefActiveClass and srefAriaCurrent share: a target (named, or gathered from enclosed links), the router subscriptions that recompute its SrefStatus, and the push of each new value into the attribute.
render() is a function of status and the params alone, so a server renderer that runs it without update() gets noChange — the attribute is left as authored — rather than a crash.
Extends
Extended by
Type Parameters
| Type Parameter |
|---|
Params extends SrefTargetParams |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
directiveName | readonly | string | the public function's name, for errors and warnings | packages/lit-ui-router/src/sref-active.ts:95 |
params | public | Params | undefined | the last params update() saw | packages/lit-ui-router/src/sref-active.ts:71 |
status | public | SrefStatus | undefined | merged status of every target, or undefined before there is one | packages/lit-ui-router/src/sref-active.ts:73 |
Methods
render()
ts
abstract render(params): unknown;Defined in: packages/lit-ui-router/src/sref-active.ts:107
the value for status and params as they stand
Parameters
| Parameter | Type |
|---|---|
params | Params |
Returns
unknown
Overrides
ts
AsyncDirective.render