Skip to content

Class: StatusBar

Defined in: src/controls/StatusBar.ts:28

The StatusBar component displays critical state information from neuroimaging viewers. It shows five main pieces of information:

  1. Mouse Position - 2D pixel coordinates within the current slice view
  2. Volume Coordinate - 3D voxel coordinates in the volume coordinate system
  3. World Coordinate - 3D coordinates in the original world space (millimeters)
  4. Current Coord - The current 3D position (typically crosshair location)
  5. Slice Indices - Current slice number(s) being displayed

This component works with both single-slice viewers (SliceViewer) and orthogonal multi-view displays (OrthogonalImageViewer) by implementing adaptive rendering based on the viewer type.

Extends

  • LitElement

Constructors

Constructor

ts
new StatusBar(): StatusBar;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:527

Returns

StatusBar

Inherited from

ts
LitElement.constructor

Properties

Other

_initializers?

ts
static optional _initializers?: Initializer[];

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:276

Inherited from
ts
LitElement._initializers

[metadata]

ts
static [metadata]: object & Record<PropertyKey, unknown>;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:435

Inherited from
ts
LitElement.[metadata]

_$litElement$

ts
static _$litElement$: boolean;

Defined in: node_modules/lit-element/lit-element.d.ts:84

Inherited from
ts
LitElement._$litElement$

viewer

ts
viewer: ViewerStateInfo;

Defined in: src/controls/StatusBar.ts:34

The viewer property accepts any object that implements the ViewerStateInfo interface. This allows the StatusBar to work with different viewer implementations like SliceViewer and OrthogonalImageViewer.


styles

ts
static styles: CSSResult;

Defined in: src/controls/StatusBar.ts:46

CSS styles for the StatusBar component. Defines layout, spacing, colors, and typography for the status display.

Overrides
ts
LitElement.styles

ariaAtomic

ts
ariaAtomic: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2466

MDN Reference

Inherited from
ts
LitElement.ariaAtomic

ariaAutoComplete

ts
ariaAutoComplete: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2468

MDN Reference

Inherited from
ts
LitElement.ariaAutoComplete

ariaBrailleLabel

ts
ariaBrailleLabel: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2470

MDN Reference

Inherited from
ts
LitElement.ariaBrailleLabel

ariaBrailleRoleDescription

ts
ariaBrailleRoleDescription: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2472

MDN Reference

Inherited from
ts
LitElement.ariaBrailleRoleDescription

ariaBusy

ts
ariaBusy: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2474

MDN Reference

Inherited from
ts
LitElement.ariaBusy

ariaChecked

ts
ariaChecked: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2476

MDN Reference

Inherited from
ts
LitElement.ariaChecked

ariaColCount

ts
ariaColCount: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2478

MDN Reference

Inherited from
ts
LitElement.ariaColCount

ariaColIndex

ts
ariaColIndex: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2480

MDN Reference

Inherited from
ts
LitElement.ariaColIndex

ariaColIndexText

ts
ariaColIndexText: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2482

MDN Reference

Inherited from
ts
LitElement.ariaColIndexText

ariaColSpan

ts
ariaColSpan: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2484

MDN Reference

Inherited from
ts
LitElement.ariaColSpan

ariaCurrent

ts
ariaCurrent: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2486

MDN Reference

Inherited from
ts
LitElement.ariaCurrent

ariaDescription

ts
ariaDescription: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2488

MDN Reference

Inherited from
ts
LitElement.ariaDescription

ariaDisabled

ts
ariaDisabled: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2490

MDN Reference

Inherited from
ts
LitElement.ariaDisabled

ariaExpanded

ts
ariaExpanded: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2492

MDN Reference

Inherited from
ts
LitElement.ariaExpanded

ariaHasPopup

ts
ariaHasPopup: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2494

MDN Reference

Inherited from
ts
LitElement.ariaHasPopup

ariaHidden

ts
ariaHidden: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2496

MDN Reference

Inherited from
ts
LitElement.ariaHidden

ariaInvalid

ts
ariaInvalid: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2497

Inherited from
ts
LitElement.ariaInvalid

ariaKeyShortcuts

ts
ariaKeyShortcuts: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2499

MDN Reference

Inherited from
ts
LitElement.ariaKeyShortcuts

ariaLabel

ts
ariaLabel: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2501

MDN Reference

Inherited from
ts
LitElement.ariaLabel

ariaLevel

ts
ariaLevel: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2503

MDN Reference

Inherited from
ts
LitElement.ariaLevel

ariaLive

ts
ariaLive: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2505

MDN Reference

Inherited from
ts
LitElement.ariaLive

ariaModal

ts
ariaModal: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2507

MDN Reference

Inherited from
ts
LitElement.ariaModal

ariaMultiLine

ts
ariaMultiLine: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2509

MDN Reference

Inherited from
ts
LitElement.ariaMultiLine

ariaMultiSelectable

ts
ariaMultiSelectable: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2511

MDN Reference

Inherited from
ts
LitElement.ariaMultiSelectable

ariaOrientation

ts
ariaOrientation: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2513

MDN Reference

Inherited from
ts
LitElement.ariaOrientation

ariaPlaceholder

ts
ariaPlaceholder: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2515

MDN Reference

Inherited from
ts
LitElement.ariaPlaceholder

ariaPosInSet

ts
ariaPosInSet: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2517

MDN Reference

Inherited from
ts
LitElement.ariaPosInSet

ariaPressed

ts
ariaPressed: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2519

MDN Reference

Inherited from
ts
LitElement.ariaPressed

ariaReadOnly

ts
ariaReadOnly: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2521

MDN Reference

Inherited from
ts
LitElement.ariaReadOnly

ariaRelevant

ts
ariaRelevant: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2523

MDN Reference

Inherited from
ts
LitElement.ariaRelevant

ariaRequired

ts
ariaRequired: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2525

MDN Reference

Inherited from
ts
LitElement.ariaRequired

ariaRoleDescription

ts
ariaRoleDescription: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2527

MDN Reference

Inherited from
ts
LitElement.ariaRoleDescription

ariaRowCount

ts
ariaRowCount: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2529

MDN Reference

Inherited from
ts
LitElement.ariaRowCount

ariaRowIndex

ts
ariaRowIndex: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2531

MDN Reference

Inherited from
ts
LitElement.ariaRowIndex

ariaRowIndexText

ts
ariaRowIndexText: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2533

MDN Reference

Inherited from
ts
LitElement.ariaRowIndexText

ariaRowSpan

ts
ariaRowSpan: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2535

MDN Reference

Inherited from
ts
LitElement.ariaRowSpan

ariaSelected

ts
ariaSelected: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2537

MDN Reference

Inherited from
ts
LitElement.ariaSelected

ariaSetSize

ts
ariaSetSize: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2539

MDN Reference

Inherited from
ts
LitElement.ariaSetSize

ariaSort

ts
ariaSort: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2541

MDN Reference

Inherited from
ts
LitElement.ariaSort

ariaValueMax

ts
ariaValueMax: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2543

MDN Reference

Inherited from
ts
LitElement.ariaValueMax

ariaValueMin

ts
ariaValueMin: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2545

MDN Reference

Inherited from
ts
LitElement.ariaValueMin

ariaValueNow

ts
ariaValueNow: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2547

MDN Reference

Inherited from
ts
LitElement.ariaValueNow

ariaValueText

ts
ariaValueText: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2549

MDN Reference

Inherited from
ts
LitElement.ariaValueText

role

ts
role: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2550

Inherited from
ts
LitElement.role

attributes

ts
readonly attributes: NamedNodeMap;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8231

MDN Reference

Inherited from
ts
LitElement.attributes

className

ts
className: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8244

Returns the value of element's class content attribute. Can be set to change it.

MDN Reference

Inherited from
ts
LitElement.className

clientHeight

ts
readonly clientHeight: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8246

MDN Reference

Inherited from
ts
LitElement.clientHeight

clientLeft

ts
readonly clientLeft: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8248

MDN Reference

Inherited from
ts
LitElement.clientLeft

clientTop

ts
readonly clientTop: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8250

MDN Reference

Inherited from
ts
LitElement.clientTop

clientWidth

ts
readonly clientWidth: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8252

MDN Reference

Inherited from
ts
LitElement.clientWidth

currentCSSZoom

ts
readonly currentCSSZoom: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8254

MDN Reference

Inherited from
ts
LitElement.currentCSSZoom

id

ts
id: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8260

Returns the value of element's id content attribute. Can be set to change it.

MDN Reference

Inherited from
ts
LitElement.id

innerHTML

ts
innerHTML: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8262

MDN Reference

Inherited from
ts
LitElement.innerHTML

localName

ts
readonly localName: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8268

Returns the local name.

MDN Reference

Inherited from
ts
LitElement.localName

namespaceURI

ts
readonly namespaceURI: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8274

Returns the namespace.

MDN Reference

Inherited from
ts
LitElement.namespaceURI

onfullscreenchange

ts
onfullscreenchange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8276

MDN Reference

Inherited from
ts
LitElement.onfullscreenchange

onfullscreenerror

ts
onfullscreenerror: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8278

MDN Reference

Inherited from
ts
LitElement.onfullscreenerror

outerHTML

ts
outerHTML: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8280

MDN Reference

Inherited from
ts
LitElement.outerHTML

ownerDocument

ts
readonly ownerDocument: Document;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8281

Returns the node document. Returns null for documents.

MDN Reference

Inherited from
ts
LitElement.ownerDocument

prefix

ts
readonly prefix: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8290

Returns the namespace prefix.

MDN Reference

Inherited from
ts
LitElement.prefix

scrollHeight

ts
readonly scrollHeight: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8292

MDN Reference

Inherited from
ts
LitElement.scrollHeight

scrollLeft

ts
scrollLeft: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8294

MDN Reference

Inherited from
ts
LitElement.scrollLeft

scrollTop

ts
scrollTop: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8296

MDN Reference

Inherited from
ts
LitElement.scrollTop

scrollWidth

ts
readonly scrollWidth: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8298

MDN Reference

Inherited from
ts
LitElement.scrollWidth

shadowRoot

ts
readonly shadowRoot: ShadowRoot | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8304

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.

MDN Reference

Inherited from
ts
LitElement.shadowRoot

slot

ts
slot: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8310

Returns the value of element's slot content attribute. Can be set to change it.

MDN Reference

Inherited from
ts
LitElement.slot

tagName

ts
readonly tagName: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8316

Returns the HTML-uppercased qualified name.

MDN Reference

Inherited from
ts
LitElement.tagName

attributeStyleMap

ts
readonly attributeStyleMap: StylePropertyMap;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8498

MDN Reference

Inherited from
ts
LitElement.attributeStyleMap

contentEditable

ts
contentEditable: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8506

MDN Reference

Inherited from
ts
LitElement.contentEditable

enterKeyHint

ts
enterKeyHint: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8508

MDN Reference

Inherited from
ts
LitElement.enterKeyHint

inputMode

ts
inputMode: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8510

MDN Reference

Inherited from
ts
LitElement.inputMode

isContentEditable

ts
readonly isContentEditable: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8512

MDN Reference

Inherited from
ts
LitElement.isContentEditable

onabort

ts
onabort: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9625

Fires when the user aborts the download.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onabort

onanimationcancel

ts
onanimationcancel: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9627

MDN Reference

Inherited from
ts
LitElement.onanimationcancel

onanimationend

ts
onanimationend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9629

MDN Reference

Inherited from
ts
LitElement.onanimationend

onanimationiteration

ts
onanimationiteration: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9631

MDN Reference

Inherited from
ts
LitElement.onanimationiteration

onanimationstart

ts
onanimationstart: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9633

MDN Reference

Inherited from
ts
LitElement.onanimationstart

onauxclick

ts
onauxclick: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9635

MDN Reference

Inherited from
ts
LitElement.onauxclick

onbeforeinput

ts
onbeforeinput: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9637

MDN Reference

Inherited from
ts
LitElement.onbeforeinput

onbeforetoggle

ts
onbeforetoggle: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9639

MDN Reference

Inherited from
ts
LitElement.onbeforetoggle

onblur

ts
onblur: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9646

Fires when the object loses the input focus.

Param

ev

The focus event.

MDN Reference

Inherited from
ts
LitElement.onblur

oncancel

ts
oncancel: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9648

MDN Reference

Inherited from
ts
LitElement.oncancel

oncanplay

ts
oncanplay: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9655

Occurs when playback is possible, but would require further buffering.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.oncanplay

oncanplaythrough

ts
oncanplaythrough: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9657

MDN Reference

Inherited from
ts
LitElement.oncanplaythrough

onchange

ts
onchange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9664

Fires when the contents of the object or selection have changed.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onchange

onclick

ts
onclick: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9671

Fires when the user clicks the left mouse button on the object

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.onclick

onclose

ts
onclose: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9673

MDN Reference

Inherited from
ts
LitElement.onclose

oncontextlost

ts
oncontextlost: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9675

MDN Reference

Inherited from
ts
LitElement.oncontextlost

oncontextmenu

ts
oncontextmenu: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9682

Fires when the user clicks the right mouse button in the client area, opening the context menu.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.oncontextmenu

oncontextrestored

ts
oncontextrestored: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9684

MDN Reference

Inherited from
ts
LitElement.oncontextrestored

oncopy

ts
oncopy: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9686

MDN Reference

Inherited from
ts
LitElement.oncopy

oncuechange

ts
oncuechange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9688

MDN Reference

Inherited from
ts
LitElement.oncuechange

oncut

ts
oncut: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9690

MDN Reference

Inherited from
ts
LitElement.oncut

ondblclick

ts
ondblclick: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9697

Fires when the user double-clicks the object.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.ondblclick

ondrag

ts
ondrag: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9704

Fires on the source object continuously during a drag operation.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.ondrag

ondragend

ts
ondragend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9711

Fires on the source object when the user releases the mouse at the close of a drag operation.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.ondragend

ondragenter

ts
ondragenter: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9718

Fires on the target element when the user drags the object to a valid drop target.

Param

ev

The drag event.

MDN Reference

Inherited from
ts
LitElement.ondragenter

ondragleave

ts
ondragleave: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9725

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

Param

ev

The drag event.

MDN Reference

Inherited from
ts
LitElement.ondragleave

ondragover

ts
ondragover: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9732

Fires on the target element continuously while the user drags the object over a valid drop target.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.ondragover

ondragstart

ts
ondragstart: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9739

Fires on the source object when the user starts to drag a text selection or selected object.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.ondragstart

ondrop

ts
ondrop: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9741

MDN Reference

Inherited from
ts
LitElement.ondrop

ondurationchange

ts
ondurationchange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9748

Occurs when the duration attribute is updated.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.ondurationchange

onemptied

ts
onemptied: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9755

Occurs when the media element is reset to its initial state.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onemptied

onended

ts
onended: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9762

Occurs when the end of playback is reached.

Param

ev

The event

MDN Reference

Inherited from
ts
LitElement.onended

onerror

ts
onerror: OnErrorEventHandler;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9769

Fires when an error occurs during object loading.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onerror

onfocus

ts
onfocus: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9776

Fires when the object receives focus.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onfocus

onformdata

ts
onformdata: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9778

MDN Reference

Inherited from
ts
LitElement.onformdata

ongotpointercapture

ts
ongotpointercapture: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9780

MDN Reference

Inherited from
ts
LitElement.ongotpointercapture

oninput

ts
oninput: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9782

MDN Reference

Inherited from
ts
LitElement.oninput

oninvalid

ts
oninvalid: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9784

MDN Reference

Inherited from
ts
LitElement.oninvalid

onkeydown

ts
onkeydown: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9791

Fires when the user presses a key.

Param

ev

The keyboard event

MDN Reference

Inherited from
ts
LitElement.onkeydown

onkeypress

ts
onkeypress: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9799

Fires when the user presses an alphanumeric key.

Param

ev

The event.

Deprecated

MDN Reference

Inherited from
ts
LitElement.onkeypress

onkeyup

ts
onkeyup: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9806

Fires when the user releases a key.

Param

ev

The keyboard event

MDN Reference

Inherited from
ts
LitElement.onkeyup

onload

ts
onload: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9813

Fires immediately after the browser loads the object.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onload

onloadeddata

ts
onloadeddata: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9820

Occurs when media data is loaded at the current playback position.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onloadeddata

onloadedmetadata

ts
onloadedmetadata: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9827

Occurs when the duration and dimensions of the media have been determined.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onloadedmetadata

onloadstart

ts
onloadstart: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9834

Occurs when Internet Explorer begins looking for media data.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onloadstart

onlostpointercapture

ts
onlostpointercapture: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9836

MDN Reference

Inherited from
ts
LitElement.onlostpointercapture

onmousedown

ts
onmousedown: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9843

Fires when the user clicks the object with either mouse button.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.onmousedown

onmouseenter

ts
onmouseenter: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9845

MDN Reference

Inherited from
ts
LitElement.onmouseenter

onmouseleave

ts
onmouseleave: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9847

MDN Reference

Inherited from
ts
LitElement.onmouseleave

onmousemove

ts
onmousemove: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9854

Fires when the user moves the mouse over the object.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.onmousemove

onmouseout

ts
onmouseout: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9861

Fires when the user moves the mouse pointer outside the boundaries of the object.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.onmouseout

onmouseover

ts
onmouseover: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9868

Fires when the user moves the mouse pointer into the object.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.onmouseover

onmouseup

ts
onmouseup: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9875

Fires when the user releases a mouse button while the mouse is over the object.

Param

ev

The mouse event.

MDN Reference

Inherited from
ts
LitElement.onmouseup

onpaste

ts
onpaste: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9877

MDN Reference

Inherited from
ts
LitElement.onpaste

onpause

ts
onpause: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9884

Occurs when playback is paused.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onpause

onplay

ts
onplay: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9891

Occurs when the play method is requested.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onplay

onplaying

ts
onplaying: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9898

Occurs when the audio or video has started playing.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onplaying

onpointercancel

ts
onpointercancel: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9900

MDN Reference

Inherited from
ts
LitElement.onpointercancel

onpointerdown

ts
onpointerdown: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9902

MDN Reference

Inherited from
ts
LitElement.onpointerdown

onpointerenter

ts
onpointerenter: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9904

MDN Reference

Inherited from
ts
LitElement.onpointerenter

onpointerleave

ts
onpointerleave: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9906

MDN Reference

Inherited from
ts
LitElement.onpointerleave

onpointermove

ts
onpointermove: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9908

MDN Reference

Inherited from
ts
LitElement.onpointermove

onpointerout

ts
onpointerout: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9910

MDN Reference

Inherited from
ts
LitElement.onpointerout

onpointerover

ts
onpointerover: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9912

MDN Reference

Inherited from
ts
LitElement.onpointerover

onpointerup

ts
onpointerup: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9914

MDN Reference

Inherited from
ts
LitElement.onpointerup

onprogress

ts
onprogress: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9921

Occurs to indicate progress while downloading media data.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onprogress

onratechange

ts
onratechange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9928

Occurs when the playback rate is increased or decreased.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onratechange

onreset

ts
onreset: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9935

Fires when the user resets a form.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onreset

onresize

ts
onresize: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9937

MDN Reference

Inherited from
ts
LitElement.onresize

onscroll

ts
onscroll: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9944

Fires when the user repositions the scroll box in the scroll bar on the object.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onscroll

onscrollend

ts
onscrollend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9946

MDN Reference

Inherited from
ts
LitElement.onscrollend

onsecuritypolicyviolation

ts
onsecuritypolicyviolation: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9948

MDN Reference

Inherited from
ts
LitElement.onsecuritypolicyviolation

onseeked

ts
onseeked: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9955

Occurs when the seek operation ends.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onseeked

onseeking

ts
onseeking: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9962

Occurs when the current playback position is moved.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onseeking

onselect

ts
onselect: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9969

Fires when the current selection changes.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onselect

onselectionchange

ts
onselectionchange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9971

MDN Reference

Inherited from
ts
LitElement.onselectionchange

onselectstart

ts
onselectstart: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9973

MDN Reference

Inherited from
ts
LitElement.onselectstart

onslotchange

ts
onslotchange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9975

MDN Reference

Inherited from
ts
LitElement.onslotchange

onstalled

ts
onstalled: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9982

Occurs when the download has stopped.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onstalled

onsubmit

ts
onsubmit: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9984

MDN Reference

Inherited from
ts
LitElement.onsubmit

onsuspend

ts
onsuspend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9991

Occurs if the load operation has been intentionally halted.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onsuspend

ontimeupdate

ts
ontimeupdate: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:9998

Occurs to indicate the current playback position.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.ontimeupdate

ontoggle

ts
ontoggle: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10000

MDN Reference

Inherited from
ts
LitElement.ontoggle

ontouchcancel?

ts
optional ontouchcancel?: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10002

MDN Reference

Inherited from
ts
LitElement.ontouchcancel

ontouchend?

ts
optional ontouchend?: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10004

MDN Reference

Inherited from
ts
LitElement.ontouchend

ontouchmove?

ts
optional ontouchmove?: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10006

MDN Reference

Inherited from
ts
LitElement.ontouchmove

ontouchstart?

ts
optional ontouchstart?: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10008

MDN Reference

Inherited from
ts
LitElement.ontouchstart

ontransitioncancel

ts
ontransitioncancel: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10010

MDN Reference

Inherited from
ts
LitElement.ontransitioncancel

ontransitionend

ts
ontransitionend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10012

MDN Reference

Inherited from
ts
LitElement.ontransitionend

ontransitionrun

ts
ontransitionrun: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10014

MDN Reference

Inherited from
ts
LitElement.ontransitionrun

ontransitionstart

ts
ontransitionstart: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10016

MDN Reference

Inherited from
ts
LitElement.ontransitionstart

onvolumechange

ts
onvolumechange: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10023

Occurs when the volume is changed, or playback is muted or unmuted.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onvolumechange

onwaiting

ts
onwaiting: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10030

Occurs when playback stops because the next frame of a video resource is not available.

Param

ev

The event.

MDN Reference

Inherited from
ts
LitElement.onwaiting

onwebkitanimationend

ts
onwebkitanimationend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10036

Deprecated

This is a legacy alias of onanimationend.

MDN Reference

Inherited from
ts
LitElement.onwebkitanimationend

onwebkitanimationiteration

ts
onwebkitanimationiteration: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10042

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference

Inherited from
ts
LitElement.onwebkitanimationiteration

onwebkitanimationstart

ts
onwebkitanimationstart: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10048

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference

Inherited from
ts
LitElement.onwebkitanimationstart

onwebkittransitionend

ts
onwebkittransitionend: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10054

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference

Inherited from
ts
LitElement.onwebkittransitionend

onwheel

ts
onwheel: ((this, ev) => any) | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10056

MDN Reference

Inherited from
ts
LitElement.onwheel

accessKey

ts
accessKey: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10704

MDN Reference

Inherited from
ts
LitElement.accessKey

accessKeyLabel

ts
readonly accessKeyLabel: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10706

MDN Reference

Inherited from
ts
LitElement.accessKeyLabel

autocapitalize

ts
autocapitalize: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10708

MDN Reference

Inherited from
ts
LitElement.autocapitalize

dir

ts
dir: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10710

MDN Reference

Inherited from
ts
LitElement.dir

draggable

ts
draggable: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10712

MDN Reference

Inherited from
ts
LitElement.draggable

hidden

ts
hidden: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10714

MDN Reference

Inherited from
ts
LitElement.hidden

inert

ts
inert: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10716

MDN Reference

Inherited from
ts
LitElement.inert

innerText

ts
innerText: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10718

MDN Reference

Inherited from
ts
LitElement.innerText

lang

ts
lang: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10720

MDN Reference

Inherited from
ts
LitElement.lang

offsetHeight

ts
readonly offsetHeight: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10722

MDN Reference

Inherited from
ts
LitElement.offsetHeight

offsetLeft

ts
readonly offsetLeft: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10724

MDN Reference

Inherited from
ts
LitElement.offsetLeft

offsetParent

ts
readonly offsetParent: Element | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10726

MDN Reference

Inherited from
ts
LitElement.offsetParent

offsetTop

ts
readonly offsetTop: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10728

MDN Reference

Inherited from
ts
LitElement.offsetTop

offsetWidth

ts
readonly offsetWidth: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10730

MDN Reference

Inherited from
ts
LitElement.offsetWidth

outerText

ts
outerText: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10732

MDN Reference

Inherited from
ts
LitElement.outerText

popover

ts
popover: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10734

MDN Reference

Inherited from
ts
LitElement.popover

spellcheck

ts
spellcheck: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10736

MDN Reference

Inherited from
ts
LitElement.spellcheck

title

ts
title: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10738

MDN Reference

Inherited from
ts
LitElement.title

translate

ts
translate: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10740

MDN Reference

Inherited from
ts
LitElement.translate

writingSuggestions

ts
writingSuggestions: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10742

MDN Reference

Inherited from
ts
LitElement.writingSuggestions

autofocus

ts
autofocus: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:12789

MDN Reference

Inherited from
ts
LitElement.autofocus

dataset

ts
readonly dataset: DOMStringMap;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:12791

MDN Reference

Inherited from
ts
LitElement.dataset

nonce?

ts
optional nonce?: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:12793

MDN Reference

Inherited from
ts
LitElement.nonce

tabIndex

ts
tabIndex: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:12795

MDN Reference

Inherited from
ts
LitElement.tabIndex

baseURI

ts
readonly baseURI: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17027

Returns node's node document's document base URL.

MDN Reference

Inherited from
ts
LitElement.baseURI

childNodes

ts
readonly childNodes: NodeListOf<ChildNode>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17033

Returns the children.

MDN Reference

Inherited from
ts
LitElement.childNodes

firstChild

ts
readonly firstChild: ChildNode | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17039

Returns the first child.

MDN Reference

Inherited from
ts
LitElement.firstChild

isConnected

ts
readonly isConnected: boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17045

Returns true if node is connected and false otherwise.

MDN Reference

Inherited from
ts
LitElement.isConnected

lastChild

ts
readonly lastChild: ChildNode | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17051

Returns the last child.

MDN Reference

Inherited from
ts
LitElement.lastChild

nextSibling

ts
readonly nextSibling: ChildNode | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17057

Returns the next sibling.

MDN Reference

Inherited from
ts
LitElement.nextSibling

nodeName

ts
readonly nodeName: string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17063

Returns a string appropriate for the type of node.

MDN Reference

Inherited from
ts
LitElement.nodeName

nodeType

ts
readonly nodeType: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17069

Returns the type of node.

MDN Reference

Inherited from
ts
LitElement.nodeType

nodeValue

ts
nodeValue: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17071

MDN Reference

Inherited from
ts
LitElement.nodeValue

parentElement

ts
readonly parentElement: HTMLElement | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17083

Returns the parent element.

MDN Reference

Inherited from
ts
LitElement.parentElement

parentNode

ts
readonly parentNode: ParentNode | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17089

Returns the parent.

MDN Reference

Inherited from
ts
LitElement.parentNode

previousSibling

ts
readonly previousSibling: ChildNode | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17095

Returns the previous sibling.

MDN Reference

Inherited from
ts
LitElement.previousSibling

textContent

ts
textContent: string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17097

MDN Reference

Inherited from
ts
LitElement.textContent

ELEMENT_NODE

ts
readonly ELEMENT_NODE: 1;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17157

node is an element.

Inherited from
ts
LitElement.ELEMENT_NODE

ATTRIBUTE_NODE

ts
readonly ATTRIBUTE_NODE: 2;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17158

Inherited from
ts
LitElement.ATTRIBUTE_NODE

TEXT_NODE

ts
readonly TEXT_NODE: 3;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17160

node is a Text node.

Inherited from
ts
LitElement.TEXT_NODE

CDATA_SECTION_NODE

ts
readonly CDATA_SECTION_NODE: 4;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17162

node is a CDATASection node.

Inherited from
ts
LitElement.CDATA_SECTION_NODE

ENTITY_REFERENCE_NODE

ts
readonly ENTITY_REFERENCE_NODE: 5;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17163

Inherited from
ts
LitElement.ENTITY_REFERENCE_NODE

ENTITY_NODE

ts
readonly ENTITY_NODE: 6;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17164

Inherited from
ts
LitElement.ENTITY_NODE

PROCESSING_INSTRUCTION_NODE

ts
readonly PROCESSING_INSTRUCTION_NODE: 7;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17166

node is a ProcessingInstruction node.

Inherited from
ts
LitElement.PROCESSING_INSTRUCTION_NODE

COMMENT_NODE

ts
readonly COMMENT_NODE: 8;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17168

node is a Comment node.

Inherited from
ts
LitElement.COMMENT_NODE

DOCUMENT_NODE

ts
readonly DOCUMENT_NODE: 9;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17170

node is a document.

Inherited from
ts
LitElement.DOCUMENT_NODE

DOCUMENT_TYPE_NODE

ts
readonly DOCUMENT_TYPE_NODE: 10;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17172

node is a doctype.

Inherited from
ts
LitElement.DOCUMENT_TYPE_NODE

DOCUMENT_FRAGMENT_NODE

ts
readonly DOCUMENT_FRAGMENT_NODE: 11;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17174

node is a DocumentFragment node.

Inherited from
ts
LitElement.DOCUMENT_FRAGMENT_NODE

NOTATION_NODE

ts
readonly NOTATION_NODE: 12;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17175

Inherited from
ts
LitElement.NOTATION_NODE

DOCUMENT_POSITION_DISCONNECTED

ts
readonly DOCUMENT_POSITION_DISCONNECTED: 1;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17177

Set when node and other are not in the same tree.

Inherited from
ts
LitElement.DOCUMENT_POSITION_DISCONNECTED

DOCUMENT_POSITION_PRECEDING

ts
readonly DOCUMENT_POSITION_PRECEDING: 2;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17179

Set when other is preceding node.

Inherited from
ts
LitElement.DOCUMENT_POSITION_PRECEDING

DOCUMENT_POSITION_FOLLOWING

ts
readonly DOCUMENT_POSITION_FOLLOWING: 4;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17181

Set when other is following node.

Inherited from
ts
LitElement.DOCUMENT_POSITION_FOLLOWING

DOCUMENT_POSITION_CONTAINS

ts
readonly DOCUMENT_POSITION_CONTAINS: 8;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17183

Set when other is an ancestor of node.

Inherited from
ts
LitElement.DOCUMENT_POSITION_CONTAINS

DOCUMENT_POSITION_CONTAINED_BY

ts
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17185

Set when other is a descendant of node.

Inherited from
ts
LitElement.DOCUMENT_POSITION_CONTAINED_BY

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

ts
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17186

Inherited from
ts
LitElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

nextElementSibling

ts
readonly nextElementSibling: Element | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17307

Returns the first following sibling that is an element, and null otherwise.

MDN Reference

Inherited from
ts
LitElement.nextElementSibling

previousElementSibling

ts
readonly previousElementSibling: Element | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17313

Returns the first preceding sibling that is an element, and null otherwise.

MDN Reference

Inherited from
ts
LitElement.previousElementSibling

childElementCount

ts
readonly childElementCount: number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17745

MDN Reference

Inherited from
ts
LitElement.childElementCount

children

ts
readonly children: HTMLCollection;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17751

Returns the child elements.

MDN Reference

Inherited from
ts
LitElement.children

firstElementChild

ts
readonly firstElementChild: Element | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17757

Returns the first child that is an element, and null otherwise.

MDN Reference

Inherited from
ts
LitElement.firstElementChild

lastElementChild

ts
readonly lastElementChild: Element | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17763

Returns the last child that is an element, and null otherwise.

MDN Reference

Inherited from
ts
LitElement.lastElementChild

assignedSlot

ts
readonly assignedSlot: HTMLSlotElement | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:22553

MDN Reference

Inherited from
ts
LitElement.assignedSlot

dev-mode

enabledWarnings?

ts
static optional enabledWarnings?: WarningKind[];

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:205

Read or set all the enabled warning categories for this class.

This property is only used in development builds.

Nocollapse
Inherited from
ts
LitElement.enabledWarnings

enableWarning?

ts
static optional enableWarning?: (warningKind) => void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:223

Enable the given warning category for this class.

This method only exists in development builds, so it should be accessed with a guard like:

ts
// Enable for all ReactiveElement subclasses
ReactiveElement.enableWarning?.('migration');

// Enable for only MyElement and subclasses
MyElement.enableWarning?.('migration');
Parameters
warningKind

WarningKind

Returns

void

Nocollapse
Inherited from
ts
LitElement.enableWarning

disableWarning?

ts
static optional disableWarning?: (warningKind) => void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:241

Disable the given warning category for this class.

This method only exists in development builds, so it should be accessed with a guard like:

ts
// Disable for all ReactiveElement subclasses
ReactiveElement.disableWarning?.('migration');

// Disable for only MyElement and subclasses
MyElement.disableWarning?.('migration');
Parameters
warningKind

WarningKind

Returns

void

Nocollapse
Inherited from
ts
LitElement.disableWarning

properties

elementProperties

ts
static elementProperties: PropertyDeclarationMap;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:298

Memoized list of all element properties, including any superclass properties. Created lazily on user subclasses when finalizing the class.

Nocollapse
Inherited from
ts
LitElement.elementProperties

properties

ts
static properties: PropertyDeclarations;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:324

User-supplied object that maps property names to PropertyDeclaration objects containing options for configuring reactive properties. When a reactive property is set the element will update and render.

By default properties are public fields, and as such, they should be considered as primarily settable by element users, either via attribute or the property itself.

Generally, properties that are changed by the element should be private or protected fields and should use the state: true option. Properties marked as state do not reflect from the corresponding attribute

However, sometimes element code does need to set a public property. This should typically only be done in response to user interaction, and an event should be fired informing the user; for example, a checkbox sets its checked property when clicked and fires a changed event. Mutating public properties should typically not be done for non-primitive (object or array) properties. In other cases when an element needs to manage state, a private property set with the state: true option should be used. When needed, state properties can be initialized via public properties to facilitate complex interactions.

Nocollapse
Inherited from
ts
LitElement.properties

rendering

shadowRootOptions

ts
static shadowRootOptions: ShadowRootInit;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:470

Options used when calling attachShadow. Set this property to customize the options for the shadowRoot; for example, to create a closed shadowRoot: {mode: 'closed'}.

Note, these options are used in createRenderRoot. If this method is customized, options should be respected if possible.

Nocollapse
Inherited from
ts
LitElement.shadowRootOptions

renderRoot

ts
readonly renderRoot: HTMLElement | DocumentFragment;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:491

Node or ShadowRoot into which element DOM should be rendered. Defaults to an open shadowRoot.

Inherited from
ts
LitElement.renderRoot

renderOptions

ts
readonly renderOptions: RenderOptions;

Defined in: node_modules/lit-element/lit-element.d.ts:88

Inherited from
ts
LitElement.renderOptions

styles

elementStyles

ts
static elementStyles: CSSResultOrNative[];

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:331

Memoized list of all element styles. Created lazily on user subclasses when finalizing the class.

Nocollapse
Inherited from
ts
LitElement.elementStyles

updates

isUpdatePending

ts
isUpdatePending: boolean;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:503

True if there is a pending update as a result of calling requestUpdate(). Should only be read.

Inherited from
ts
LitElement.isUpdatePending

hasUpdated

ts
hasUpdated: boolean;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:509

Is set to true after the first update. The element code cannot assume that renderRoot exists before the element hasUpdated.

Inherited from
ts
LitElement.hasUpdated

Accessors

Other

classList

Get Signature
ts
get classList(): DOMTokenList;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8237

Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.

MDN Reference

Returns

DOMTokenList

Set Signature
ts
set classList(value): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8238

Parameters
value

string

Returns

void

Inherited from
ts
LitElement.classList

part

Get Signature
ts
get part(): DOMTokenList;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8283

MDN Reference

Returns

DOMTokenList

Set Signature
ts
set part(value): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8284

Parameters
value

string

Returns

void

Inherited from
ts
LitElement.part

style

Get Signature
ts
get style(): CSSStyleDeclaration;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8500

MDN Reference

Returns

CSSStyleDeclaration

Set Signature
ts
set style(cssText): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8501

Parameters
cssText

string

Returns

void

Inherited from
ts
LitElement.style

attributes

observedAttributes

Get Signature
ts
get static observedAttributes(): string[];

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:364

Returns a list of attributes corresponding to the registered properties.

Nocollapse
Returns

string[]

Inherited from
ts
LitElement.observedAttributes

updates

updateComplete

Get Signature
ts
get updateComplete(): Promise<boolean>;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:692

Returns a Promise that resolves when the element has completed updating. The Promise value is a boolean that is true if the element completed the update without triggering another update. The Promise result is false if a property was set inside updated(). If the Promise is rejected, an exception was thrown during the update.

To await additional asynchronous work, override the getUpdateComplete method. For example, it is sometimes useful to await a rendered element before fulfilling this Promise. To do this, first await super.getUpdateComplete(), then any subsequent state.

Returns

Promise<boolean>

A promise of a boolean that resolves to true if the update completed without triggering another update.

Inherited from
ts
LitElement.updateComplete

Methods

Other

addInitializer()

ts
static addInitializer(initializer): void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:275

Adds an initializer function to the class that is called during instance construction.

This is useful for code that runs against a ReactiveElement subclass, such as a decorator, that needs to do work for each instance, such as setting up a ReactiveController.

ts
const myDecorator = (target: typeof ReactiveElement, key: string) => {
  target.addInitializer((instance: ReactiveElement) => {
    // This is run during construction of the element
    new MyController(instance);
  });
}

Decorating a field will then cause each instance to run an initializer that adds a controller:

ts
class MyElement extends LitElement {
  @myDecorator foo;
}

Initializers are stored per-constructor. Adding an initializer to a subclass does not add it to a superclass. Since initializers are run in constructors, initializers will run in order of the class hierarchy, starting with superclasses and progressing to the instance's class.

Parameters
initializer

Initializer

Returns

void

Nocollapse
Inherited from
ts
LitElement.addInitializer

connectedCallback()

ts
connectedCallback(): void;

Defined in: src/controls/StatusBar.ts:78

Called when the component is added to the DOM. Sets up MobX reactions if a viewer is available.

Returns

void

Overrides
ts
LitElement.connectedCallback

disconnectedCallback()

ts
disconnectedCallback(): void;

Defined in: src/controls/StatusBar.ts:89

Called when the component is removed from the DOM. Cleans up MobX reactions to prevent memory leaks.

Returns

void

Overrides
ts
LitElement.disconnectedCallback

updated()

ts
updated(changedProperties): void;

Defined in: src/controls/StatusBar.ts:100

Called when the component's properties change. If the viewer property changes, sets up new reactions to track its state.

Parameters
changedProperties

Map<string, any>

Map of properties that have changed

Returns

void

Overrides
ts
LitElement.updated

setupReactions()

ts
setupReactions(): void;

Defined in: src/controls/StatusBar.ts:117

Sets up MobX reactions to update the UI when viewer state changes. These reactions track changes to:

  1. Current 3D coordinates (focus point/crosshair position)
  2. Mouse state information (2D image coordinates and 3D volume coordinates)
  3. Slice indices (which slices are currently shown)
Returns

void


cleanupReactions()

ts
cleanupReactions(): void;

Defined in: src/controls/StatusBar.ts:156

Cleans up all MobX reactions by disposing them. Called when the component is disconnected or when the viewer changes.

Returns

void


render()

ts
render(): TemplateResult<1>;

Defined in: src/controls/StatusBar.ts:184

Renders the StatusBar component with five main information sections:

  1. Mouse Position: Shows x,y coordinates within the current slice view These are 2D pixel coordinates from viewer.mouseState.imageCoordinate

  2. Volume Coordinate: Shows x,y,z coordinates in the 3D volume These are volume voxel coordinates from viewer.mouseState.volumeCoordinate Calculated using SliceTransform.sliceToVolumeCoord() to convert from 2D to 3D

  3. World Coordinate: Shows x,y,z coordinates in the original world space These are millimeter coordinates from viewer.mouseState.worldCoordinate Calculated using SliceTransform.sliceToWorldCoord() to convert from 2D to world space

  4. Current Coord: Shows the current position (crosshair location) This is the 3D focus point from viewer.currentCoord Used to synchronize positions across multiple views

  5. Slice Indices: Shows current slice numbers

    • For SliceViewer: Single slice index along the viewing axis
    • For OrthogonalImageViewer: Slice indices for axial, coronal, and sagittal planes

The display adapts based on the viewer type (single slice vs. orthogonal).

Returns

TemplateResult<1>

Overrides
ts
LitElement.render

animate()

ts
animate(keyframes, options?): Animation;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2702

MDN Reference

Parameters
keyframes

Keyframe[] | PropertyIndexedKeyframes | null

options?

number | KeyframeAnimationOptions

Returns

Animation

Inherited from
ts
LitElement.animate

getAnimations()

ts
getAnimations(options?): Animation[];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2704

MDN Reference

Parameters
options?

GetAnimationsOptions

Returns

Animation[]

Inherited from
ts
LitElement.getAnimations

after()

ts
after(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6167

Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters
nodes

...(string | Node)[]

Returns

void

Inherited from
ts
LitElement.after

before()

ts
before(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6175

Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters
nodes

...(string | Node)[]

Returns

void

Inherited from
ts
LitElement.before

remove()

ts
remove(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6181

Removes node.

MDN Reference

Returns

void

Inherited from
ts
LitElement.remove

replaceWith()

ts
replaceWith(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6189

Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters
nodes

...(string | Node)[]

Returns

void

Inherited from
ts
LitElement.replaceWith

attachShadow()

ts
attachShadow(init): ShadowRoot;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8322

Creates a shadow root for element and returns it.

MDN Reference

Parameters
init

ShadowRootInit

Returns

ShadowRoot

Inherited from
ts
LitElement.attachShadow

checkVisibility()

ts
checkVisibility(options?): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8324

MDN Reference

Parameters
options?

CheckVisibilityOptions

Returns

boolean

Inherited from
ts
LitElement.checkVisibility

closest()

Call Signature
ts
closest<K>(selector): HTMLElementTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8330

Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.

MDN Reference

Type Parameters
K

K extends keyof HTMLElementTagNameMap

Parameters
selector

K

Returns

HTMLElementTagNameMap[K] | null

Inherited from
ts
LitElement.closest
Call Signature
ts
closest<K>(selector): SVGElementTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8331

Type Parameters
K

K extends keyof SVGElementTagNameMap

Parameters
selector

K

Returns

SVGElementTagNameMap[K] | null

Inherited from
ts
LitElement.closest
Call Signature
ts
closest<K>(selector): MathMLElementTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8332

Type Parameters
K

K extends keyof MathMLElementTagNameMap

Parameters
selector

K

Returns

MathMLElementTagNameMap[K] | null

Inherited from
ts
LitElement.closest
Call Signature
ts
closest<E>(selectors): E | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8333

Type Parameters
E

E extends Element = Element

Parameters
selectors

string

Returns

E | null

Inherited from
ts
LitElement.closest

computedStyleMap()

ts
computedStyleMap(): StylePropertyMapReadOnly;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8335

MDN Reference

Returns

StylePropertyMapReadOnly

Inherited from
ts
LitElement.computedStyleMap

getAttribute()

ts
getAttribute(qualifiedName): string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8341

Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.

MDN Reference

Parameters
qualifiedName

string

Returns

string | null

Inherited from
ts
LitElement.getAttribute

getAttributeNS()

ts
getAttributeNS(namespace, localName): string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8347

Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

MDN Reference

Parameters
namespace

string | null

localName

string

Returns

string | null

Inherited from
ts
LitElement.getAttributeNS

getAttributeNames()

ts
getAttributeNames(): string[];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8353

Returns the qualified names of all element's attributes. Can contain duplicates.

MDN Reference

Returns

string[]

Inherited from
ts
LitElement.getAttributeNames

getAttributeNode()

ts
getAttributeNode(qualifiedName): Attr | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8355

MDN Reference

Parameters
qualifiedName

string

Returns

Attr | null

Inherited from
ts
LitElement.getAttributeNode

getAttributeNodeNS()

ts
getAttributeNodeNS(namespace, localName): Attr | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8357

MDN Reference

Parameters
namespace

string | null

localName

string

Returns

Attr | null

Inherited from
ts
LitElement.getAttributeNodeNS

getBoundingClientRect()

ts
getBoundingClientRect(): DOMRect;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8359

MDN Reference

Returns

DOMRect

Inherited from
ts
LitElement.getBoundingClientRect

getClientRects()

ts
getClientRects(): DOMRectList;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8361

MDN Reference

Returns

DOMRectList

Inherited from
ts
LitElement.getClientRects

getElementsByClassName()

ts
getElementsByClassName(classNames): HTMLCollectionOf<Element>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8367

Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.

MDN Reference

Parameters
classNames

string

Returns

HTMLCollectionOf<Element>

Inherited from
ts
LitElement.getElementsByClassName

getElementsByTagName()

Call Signature
ts
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8369

MDN Reference

Type Parameters
K

K extends keyof HTMLElementTagNameMap

Parameters
qualifiedName

K

Returns

HTMLCollectionOf<HTMLElementTagNameMap[K]>

Inherited from
ts
LitElement.getElementsByTagName
Call Signature
ts
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8370

Type Parameters
K

K extends keyof SVGElementTagNameMap

Parameters
qualifiedName

K

Returns

HTMLCollectionOf<SVGElementTagNameMap[K]>

Inherited from
ts
LitElement.getElementsByTagName
Call Signature
ts
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8371

Type Parameters
K

K extends keyof MathMLElementTagNameMap

Parameters
qualifiedName

K

Returns

HTMLCollectionOf<MathMLElementTagNameMap[K]>

Inherited from
ts
LitElement.getElementsByTagName
Call Signature
ts
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8373

Type Parameters
K

K extends keyof HTMLElementDeprecatedTagNameMap

Parameters
qualifiedName

K

Returns

HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated
Inherited from
ts
LitElement.getElementsByTagName
Call Signature
ts
getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8374

Parameters
qualifiedName

string

Returns

HTMLCollectionOf<Element>

Inherited from
ts
LitElement.getElementsByTagName

getElementsByTagNameNS()

Call Signature
ts
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8376

MDN Reference

Parameters
namespaceURI

"http://www.w3.org/1999/xhtml"

localName

string

Returns

HTMLCollectionOf<HTMLElement>

Inherited from
ts
LitElement.getElementsByTagNameNS
Call Signature
ts
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8377

Parameters
namespaceURI

"http://www.w3.org/2000/svg"

localName

string

Returns

HTMLCollectionOf<SVGElement>

Inherited from
ts
LitElement.getElementsByTagNameNS
Call Signature
ts
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8378

Parameters
namespaceURI

"http://www.w3.org/1998/Math/MathML"

localName

string

Returns

HTMLCollectionOf<MathMLElement>

Inherited from
ts
LitElement.getElementsByTagNameNS
Call Signature
ts
getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8379

Parameters
namespace

string | null

localName

string

Returns

HTMLCollectionOf<Element>

Inherited from
ts
LitElement.getElementsByTagNameNS

getHTML()

ts
getHTML(options?): string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8381

MDN Reference

Parameters
options?

GetHTMLOptions

Returns

string

Inherited from
ts
LitElement.getHTML

hasAttribute()

ts
hasAttribute(qualifiedName): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8387

Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.

MDN Reference

Parameters
qualifiedName

string

Returns

boolean

Inherited from
ts
LitElement.hasAttribute

hasAttributeNS()

ts
hasAttributeNS(namespace, localName): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8393

Returns true if element has an attribute whose namespace is namespace and local name is localName.

MDN Reference

Parameters
namespace

string | null

localName

string

Returns

boolean

Inherited from
ts
LitElement.hasAttributeNS

hasAttributes()

ts
hasAttributes(): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8399

Returns true if element has attributes, and false otherwise.

MDN Reference

Returns

boolean

Inherited from
ts
LitElement.hasAttributes

hasPointerCapture()

ts
hasPointerCapture(pointerId): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8401

MDN Reference

Parameters
pointerId

number

Returns

boolean

Inherited from
ts
LitElement.hasPointerCapture

insertAdjacentElement()

ts
insertAdjacentElement(where, element): Element | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8403

MDN Reference

Parameters
where

InsertPosition

element

Element

Returns

Element | null

Inherited from
ts
LitElement.insertAdjacentElement

insertAdjacentHTML()

ts
insertAdjacentHTML(position, string): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8405

MDN Reference

Parameters
position

InsertPosition

string

string

Returns

void

Inherited from
ts
LitElement.insertAdjacentHTML

insertAdjacentText()

ts
insertAdjacentText(where, data): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8407

MDN Reference

Parameters
where

InsertPosition

data

string

Returns

void

Inherited from
ts
LitElement.insertAdjacentText

matches()

ts
matches(selectors): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8413

Returns true if matching selectors against element's root yields element, and false otherwise.

MDN Reference

Parameters
selectors

string

Returns

boolean

Inherited from
ts
LitElement.matches

releasePointerCapture()

ts
releasePointerCapture(pointerId): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8415

MDN Reference

Parameters
pointerId

number

Returns

void

Inherited from
ts
LitElement.releasePointerCapture

removeAttribute()

ts
removeAttribute(qualifiedName): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8421

Removes element's first attribute whose qualified name is qualifiedName.

MDN Reference

Parameters
qualifiedName

string

Returns

void

Inherited from
ts
LitElement.removeAttribute

removeAttributeNS()

ts
removeAttributeNS(namespace, localName): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8427

Removes element's attribute whose namespace is namespace and local name is localName.

MDN Reference

Parameters
namespace

string | null

localName

string

Returns

void

Inherited from
ts
LitElement.removeAttributeNS

removeAttributeNode()

ts
removeAttributeNode(attr): Attr;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8429

MDN Reference

Parameters
attr

Attr

Returns

Attr

Inherited from
ts
LitElement.removeAttributeNode

requestFullscreen()

ts
requestFullscreen(options?): Promise<void>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8437

Displays element fullscreen and resolves promise when done.

When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.

MDN Reference

Parameters
options?

FullscreenOptions

Returns

Promise<void>

Inherited from
ts
LitElement.requestFullscreen

requestPointerLock()

ts
requestPointerLock(options?): Promise<void>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8439

MDN Reference

Parameters
options?

PointerLockOptions

Returns

Promise<void>

Inherited from
ts
LitElement.requestPointerLock

scroll()

Call Signature
ts
scroll(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8441

MDN Reference

Parameters
options?

ScrollToOptions

Returns

void

Inherited from
ts
LitElement.scroll
Call Signature
ts
scroll(x, y): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8442

Parameters
x

number

y

number

Returns

void

Inherited from
ts
LitElement.scroll

scrollBy()

Call Signature
ts
scrollBy(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8444

MDN Reference

Parameters
options?

ScrollToOptions

Returns

void

Inherited from
ts
LitElement.scrollBy
Call Signature
ts
scrollBy(x, y): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8445

Parameters
x

number

y

number

Returns

void

Inherited from
ts
LitElement.scrollBy

scrollIntoView()

ts
scrollIntoView(arg?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8447

MDN Reference

Parameters
arg?

boolean | ScrollIntoViewOptions

Returns

void

Inherited from
ts
LitElement.scrollIntoView

scrollTo()

Call Signature
ts
scrollTo(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8449

MDN Reference

Parameters
options?

ScrollToOptions

Returns

void

Inherited from
ts
LitElement.scrollTo
Call Signature
ts
scrollTo(x, y): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8450

Parameters
x

number

y

number

Returns

void

Inherited from
ts
LitElement.scrollTo

setAttribute()

ts
setAttribute(qualifiedName, value): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8456

Sets the value of element's first attribute whose qualified name is qualifiedName to value.

MDN Reference

Parameters
qualifiedName

string

value

string

Returns

void

Inherited from
ts
LitElement.setAttribute

setAttributeNS()

ts
setAttributeNS(
   namespace, 
   qualifiedName, 
   value): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8462

Sets the value of element's attribute whose namespace is namespace and local name is localName to value.

MDN Reference

Parameters
namespace

string | null

qualifiedName

string

value

string

Returns

void

Inherited from
ts
LitElement.setAttributeNS

setAttributeNode()

ts
setAttributeNode(attr): Attr | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8464

MDN Reference

Parameters
attr

Attr

Returns

Attr | null

Inherited from
ts
LitElement.setAttributeNode

setAttributeNodeNS()

ts
setAttributeNodeNS(attr): Attr | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8466

MDN Reference

Parameters
attr

Attr

Returns

Attr | null

Inherited from
ts
LitElement.setAttributeNodeNS

setHTMLUnsafe()

ts
setHTMLUnsafe(html): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8468

MDN Reference

Parameters
html

string

Returns

void

Inherited from
ts
LitElement.setHTMLUnsafe

setPointerCapture()

ts
setPointerCapture(pointerId): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8470

MDN Reference

Parameters
pointerId

number

Returns

void

Inherited from
ts
LitElement.setPointerCapture

toggleAttribute()

ts
toggleAttribute(qualifiedName, force?): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8478

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns true if qualifiedName is now present, and false otherwise.

MDN Reference

Parameters
qualifiedName

string

force?

boolean

Returns

boolean

Inherited from
ts
LitElement.toggleAttribute

webkitMatchesSelector()

ts
webkitMatchesSelector(selectors): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8484

Parameters
selectors

string

Returns

boolean

Deprecated

This is a legacy alias of matches.

MDN Reference

Inherited from
ts
LitElement.webkitMatchesSelector

dispatchEvent()

ts
dispatchEvent(event): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:8882

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

Parameters
event

Event

Returns

boolean

Inherited from
ts
LitElement.dispatchEvent

attachInternals()

ts
attachInternals(): ElementInternals;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10744

MDN Reference

Returns

ElementInternals

Inherited from
ts
LitElement.attachInternals

click()

ts
click(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10746

MDN Reference

Returns

void

Inherited from
ts
LitElement.click

hidePopover()

ts
hidePopover(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10748

MDN Reference

Returns

void

Inherited from
ts
LitElement.hidePopover

showPopover()

ts
showPopover(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10750

MDN Reference

Returns

void

Inherited from
ts
LitElement.showPopover

togglePopover()

ts
togglePopover(options?): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10752

MDN Reference

Parameters
options?

boolean

Returns

boolean

Inherited from
ts
LitElement.togglePopover

addEventListener()

Call Signature
ts
addEventListener<K>(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10753

Type Parameters
K

K extends keyof HTMLElementEventMap

Parameters
type

K

listener

(this, ev) => any

options?

boolean | AddEventListenerOptions

Returns

void

Inherited from
ts
LitElement.addEventListener
Call Signature
ts
addEventListener(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10754

Parameters
type

string

listener

EventListenerOrEventListenerObject

options?

boolean | AddEventListenerOptions

Returns

void

Inherited from
ts
LitElement.addEventListener

removeEventListener()

Call Signature
ts
removeEventListener<K>(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10755

Type Parameters
K

K extends keyof HTMLElementEventMap

Parameters
type

K

listener

(this, ev) => any

options?

boolean | EventListenerOptions

Returns

void

Inherited from
ts
LitElement.removeEventListener
Call Signature
ts
removeEventListener(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10756

Parameters
type

string

listener

EventListenerOrEventListenerObject

options?

boolean | EventListenerOptions

Returns

void

Inherited from
ts
LitElement.removeEventListener

blur()

ts
blur(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:12797

MDN Reference

Returns

void

Inherited from
ts
LitElement.blur

focus()

ts
focus(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:12799

MDN Reference

Parameters
options?

FocusOptions

Returns

void

Inherited from
ts
LitElement.focus

appendChild()

ts
appendChild<T>(node): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17099

MDN Reference

Type Parameters
T

T extends Node

Parameters
node

T

Returns

T

Inherited from
ts
LitElement.appendChild

cloneNode()

ts
cloneNode(subtree?): Node;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17105

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

MDN Reference

Parameters
subtree?

boolean

Returns

Node

Inherited from
ts
LitElement.cloneNode

compareDocumentPosition()

ts
compareDocumentPosition(other): number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17111

Returns a bitmask indicating the position of other relative to node.

MDN Reference

Parameters
other

Node

Returns

number

Inherited from
ts
LitElement.compareDocumentPosition

contains()

ts
contains(other): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17117

Returns true if other is an inclusive descendant of node, and false otherwise.

MDN Reference

Parameters
other

Node | null

Returns

boolean

Inherited from
ts
LitElement.contains

getRootNode()

ts
getRootNode(options?): Node;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17123

Returns node's root.

MDN Reference

Parameters
options?

GetRootNodeOptions

Returns

Node

Inherited from
ts
LitElement.getRootNode

hasChildNodes()

ts
hasChildNodes(): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17129

Returns whether node has children.

MDN Reference

Returns

boolean

Inherited from
ts
LitElement.hasChildNodes

insertBefore()

ts
insertBefore<T>(node, child): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17131

MDN Reference

Type Parameters
T

T extends Node

Parameters
node

T

child

Node | null

Returns

T

Inherited from
ts
LitElement.insertBefore

isDefaultNamespace()

ts
isDefaultNamespace(namespace): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17133

MDN Reference

Parameters
namespace

string | null

Returns

boolean

Inherited from
ts
LitElement.isDefaultNamespace

isEqualNode()

ts
isEqualNode(otherNode): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17139

Returns whether node and otherNode have the same properties.

MDN Reference

Parameters
otherNode

Node | null

Returns

boolean

Inherited from
ts
LitElement.isEqualNode

isSameNode()

ts
isSameNode(otherNode): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17141

MDN Reference

Parameters
otherNode

Node | null

Returns

boolean

Inherited from
ts
LitElement.isSameNode

lookupNamespaceURI()

ts
lookupNamespaceURI(prefix): string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17143

MDN Reference

Parameters
prefix

string | null

Returns

string | null

Inherited from
ts
LitElement.lookupNamespaceURI

lookupPrefix()

ts
lookupPrefix(namespace): string | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17145

MDN Reference

Parameters
namespace

string | null

Returns

string | null

Inherited from
ts
LitElement.lookupPrefix

normalize()

ts
normalize(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17151

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

MDN Reference

Returns

void

Inherited from
ts
LitElement.normalize

removeChild()

ts
removeChild<T>(child): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17153

MDN Reference

Type Parameters
T

T extends Node

Parameters
child

T

Returns

T

Inherited from
ts
LitElement.removeChild

replaceChild()

ts
replaceChild<T>(node, child): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17155

MDN Reference

Type Parameters
T

T extends Node

Parameters
node

Node

child

T

Returns

T

Inherited from
ts
LitElement.replaceChild

append()

ts
append(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17771

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters
nodes

...(string | Node)[]

Returns

void

Inherited from
ts
LitElement.append

prepend()

ts
prepend(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17779

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters
nodes

...(string | Node)[]

Returns

void

Inherited from
ts
LitElement.prepend

querySelector()

Call Signature
ts
querySelector<K>(selectors): HTMLElementTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17785

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

Type Parameters
K

K extends keyof HTMLElementTagNameMap

Parameters
selectors

K

Returns

HTMLElementTagNameMap[K] | null

Inherited from
ts
LitElement.querySelector
Call Signature
ts
querySelector<K>(selectors): SVGElementTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17786

Type Parameters
K

K extends keyof SVGElementTagNameMap

Parameters
selectors

K

Returns

SVGElementTagNameMap[K] | null

Inherited from
ts
LitElement.querySelector
Call Signature
ts
querySelector<K>(selectors): MathMLElementTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17787

Type Parameters
K

K extends keyof MathMLElementTagNameMap

Parameters
selectors

K

Returns

MathMLElementTagNameMap[K] | null

Inherited from
ts
LitElement.querySelector
Call Signature
ts
querySelector<K>(selectors): HTMLElementDeprecatedTagNameMap[K] | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17789

Type Parameters
K

K extends keyof HTMLElementDeprecatedTagNameMap

Parameters
selectors

K

Returns

HTMLElementDeprecatedTagNameMap[K] | null

Deprecated
Inherited from
ts
LitElement.querySelector
Call Signature
ts
querySelector<E>(selectors): E | null;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17790

Type Parameters
E

E extends Element = Element

Parameters
selectors

string

Returns

E | null

Inherited from
ts
LitElement.querySelector

querySelectorAll()

Call Signature
ts
querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17796

Returns all element descendants of node that match selectors.

MDN Reference

Type Parameters
K

K extends keyof HTMLElementTagNameMap

Parameters
selectors

K

Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from
ts
LitElement.querySelectorAll
Call Signature
ts
querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17797

Type Parameters
K

K extends keyof SVGElementTagNameMap

Parameters
selectors

K

Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from
ts
LitElement.querySelectorAll
Call Signature
ts
querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17798

Type Parameters
K

K extends keyof MathMLElementTagNameMap

Parameters
selectors

K

Returns

NodeListOf<MathMLElementTagNameMap[K]>

Inherited from
ts
LitElement.querySelectorAll
Call Signature
ts
querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17800

Type Parameters
K

K extends keyof HTMLElementDeprecatedTagNameMap

Parameters
selectors

K

Returns

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated
Inherited from
ts
LitElement.querySelectorAll
Call Signature
ts
querySelectorAll<E>(selectors): NodeListOf<E>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17801

Type Parameters
E

E extends Element = Element

Parameters
selectors

string

Returns

NodeListOf<E>

Inherited from
ts
LitElement.querySelectorAll

replaceChildren()

ts
replaceChildren(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:17809

Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters
nodes

...(string | Node)[]

Returns

void

Inherited from
ts
LitElement.replaceChildren

attributes

attributeChangedCallback()

ts
attributeChangedCallback(
   name, 
   _old, 
   value): void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:597

Synchronizes property values when attributes change.

Specifically, when an attribute is set, the corresponding property is set. You should rarely need to implement this callback. If this method is overridden, super.attributeChangedCallback(name, _old, value) must be called.

See responding to attribute changes on MDN for more information about the attributeChangedCallback.

Parameters
name

string

_old

string | null

value

string | null

Returns

void

Inherited from
ts
LitElement.attributeChangedCallback

controllers

addController()

ts
addController(controller): void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:542

Registers a ReactiveController to participate in the element's reactive update cycle. The element automatically calls into any registered controllers during its lifecycle callbacks.

If the element is connected when addController() is called, the controller's hostConnected() callback will be immediately called.

Parameters
controller

ReactiveController

Returns

void

Inherited from
ts
LitElement.addController

removeController()

ts
removeController(controller): void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:547

Removes a ReactiveController from the element.

Parameters
controller

ReactiveController

Returns

void

Inherited from
ts
LitElement.removeController

properties

createProperty()

ts
static createProperty(name, options?): void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:391

Creates a property accessor on the element prototype if one does not exist and stores a PropertyDeclaration for the property with the given options. The property setter calls the property's hasChanged property option or uses a strict identity check to determine whether or not to request an update.

This method may be overridden to customize properties; however, when doing so, it's important to call super.createProperty to ensure the property is setup correctly. This method calls getPropertyDescriptor internally to get a descriptor to install. To customize what properties do when they are get or set, override getPropertyDescriptor. To customize the options for a property, implement createProperty like this:

ts
static createProperty(name, options) {
  options = Object.assign(options, {myOption: true});
  super.createProperty(name, options);
}
Parameters
name

PropertyKey

options?

PropertyDeclaration<unknown, unknown>

Returns

void

Nocollapse
Inherited from
ts
LitElement.createProperty

getPropertyOptions()

ts
static getPropertyOptions(name): PropertyDeclaration<unknown, unknown>;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:434

Returns the property options associated with the given property. These options are defined with a PropertyDeclaration via the properties object or the @property decorator and are registered in createProperty(...).

Note, this method should be considered "final" and not overridden. To customize the options for a given property, override createProperty.

Parameters
name

PropertyKey

Returns

PropertyDeclaration<unknown, unknown>

Nocollapse
Final
Inherited from
ts
LitElement.getPropertyOptions

updates

requestUpdate()

ts
requestUpdate(
   name?, 
   oldValue?, 
   options?, 
   useNewValue?, 
   newValue?): void;

Defined in: node_modules/lit/node_modules/@lit/reactive-element/reactive-element.d.ts:619

Requests an update which is processed asynchronously. This should be called when an element should update based on some state not triggered by setting a reactive property. In this case, pass no arguments. It should also be called when manually implementing a property setter. In this case, pass the property name and oldValue to ensure that any configured property options are honored.

Parameters
name?

PropertyKey

name of requesting property

oldValue?

unknown

old value of requesting property

options?

PropertyDeclaration<unknown, unknown>

property options to use instead of the previously configured options

useNewValue?

boolean

if true, the newValue argument is used instead of reading the property value. This is important to use if the reactive property is a standard private accessor, as opposed to a plain property, since private members can't be dynamically read by name.

newValue?

unknown

the new value of the property. This is only used if useNewValue is true.

Returns

void

Inherited from
ts
LitElement.requestUpdate

Released under the MIT License.