Skip to content

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 ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
directiveNamereadonlystringthe public function's name, for errors and warningsSrefStatusDirective.directiveNamepackages/lit-ui-router/src/sref-active.ts:101
paramspublic| SrefAriaCurrentParams | undefinedthe last params update() sawSrefStatusDirective.paramspackages/lit-ui-router/src/sref-active.ts:75
statuspublicSrefStatus | undefinedmerged status of every target, or undefined before there is oneSrefStatusDirective.statuspackages/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 ​

ParameterType
paramsSrefAriaCurrentParams

Returns ​

| typeof nothing | AriaCurrentValue | typeof noChange

Overrides ​

SrefStatusDirective.render