lit-ui-router / SrefAriaCurrentDirective
Class: SrefAriaCurrentDirective
Defined in: packages/lit-ui-router/src/sref-active.ts:526
The attribute-part sibling of UiSrefActiveDirective's aria-current handling.
See
srefAriaCurrent for the public API
Extends
SrefStatusDirective<SrefAriaCurrentParams, |AriaCurrentValue| typeofnothing| typeofnoChange>
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
directiveName | readonly | string | the public function's name, for errors and warnings | SrefStatusDirective.directiveName | packages/lit-ui-router/src/sref-active.ts:101 |
params | public | | SrefAriaCurrentParams | undefined | the last params update() saw | SrefStatusDirective.params | packages/lit-ui-router/src/sref-active.ts:75 |
status | public | SrefStatus | undefined | merged status of every target, or undefined before there is one | SrefStatusDirective.status | packages/lit-ui-router/src/sref-active.ts:77 |
Methods
render()
ts
render(params):
| typeof nothing
| AriaCurrentValue
| typeof noChange;Defined in: packages/lit-ui-router/src/sref-active.ts:560
The token for the current status, nothing to remove the attribute, or noChange before a status exists.
Parameters
| Parameter | Type |
|---|---|
params | SrefAriaCurrentParams |
Returns
| typeof nothing | AriaCurrentValue | typeof noChange