SdkMapElement ​
Extends ​
LitElement
Constructors ​
Constructor ​
new SdkMapElement():
SdkMapElement
Returns ​
SdkMapElement
Inherited from ​
LitElement.constructor
Other ​
accessKey ​
accessKey:
string
Inherited from ​
LitElement.accessKey
accessKeyLabel ​
readonlyaccessKeyLabel:string
Inherited from ​
LitElement.accessKeyLabel
ariaAtomic ​
ariaAtomic:
string|null
Inherited from ​
LitElement.ariaAtomic
ariaAutoComplete ​
ariaAutoComplete:
string|null
Inherited from ​
LitElement.ariaAutoComplete
ariaBusy ​
ariaBusy:
string|null
Inherited from ​
LitElement.ariaBusy
ariaChecked ​
ariaChecked:
string|null
Inherited from ​
LitElement.ariaChecked
ariaColCount ​
ariaColCount:
string|null
Inherited from ​
LitElement.ariaColCount
ariaColIndex ​
ariaColIndex:
string|null
Inherited from ​
LitElement.ariaColIndex
ariaColSpan ​
ariaColSpan:
string|null
Inherited from ​
LitElement.ariaColSpan
ariaCurrent ​
ariaCurrent:
string|null
Inherited from ​
LitElement.ariaCurrent
ariaDisabled ​
ariaDisabled:
string|null
Inherited from ​
LitElement.ariaDisabled
ariaExpanded ​
ariaExpanded:
string|null
Inherited from ​
LitElement.ariaExpanded
ariaHasPopup ​
ariaHasPopup:
string|null
Inherited from ​
LitElement.ariaHasPopup
ariaHidden ​
ariaHidden:
string|null
Inherited from ​
LitElement.ariaHidden
ariaInvalid ​
ariaInvalid:
string|null
Inherited from ​
LitElement.ariaInvalid
ariaKeyShortcuts ​
ariaKeyShortcuts:
string|null
Inherited from ​
LitElement.ariaKeyShortcuts
ariaLabel ​
ariaLabel:
string|null
Inherited from ​
LitElement.ariaLabel
ariaLevel ​
ariaLevel:
string|null
Inherited from ​
LitElement.ariaLevel
ariaLive ​
ariaLive:
string|null
Inherited from ​
LitElement.ariaLive
ariaModal ​
ariaModal:
string|null
Inherited from ​
LitElement.ariaModal
ariaMultiLine ​
ariaMultiLine:
string|null
Inherited from ​
LitElement.ariaMultiLine
ariaMultiSelectable ​
ariaMultiSelectable:
string|null
Inherited from ​
LitElement.ariaMultiSelectable
ariaOrientation ​
ariaOrientation:
string|null
Inherited from ​
LitElement.ariaOrientation
ariaPlaceholder ​
ariaPlaceholder:
string|null
Inherited from ​
LitElement.ariaPlaceholder
ariaPosInSet ​
ariaPosInSet:
string|null
Inherited from ​
LitElement.ariaPosInSet
ariaPressed ​
ariaPressed:
string|null
Inherited from ​
LitElement.ariaPressed
ariaReadOnly ​
ariaReadOnly:
string|null
Inherited from ​
LitElement.ariaReadOnly
ariaRequired ​
ariaRequired:
string|null
Inherited from ​
LitElement.ariaRequired
ariaRoleDescription ​
ariaRoleDescription:
string|null
Inherited from ​
LitElement.ariaRoleDescription
ariaRowCount ​
ariaRowCount:
string|null
Inherited from ​
LitElement.ariaRowCount
ariaRowIndex ​
ariaRowIndex:
string|null
Inherited from ​
LitElement.ariaRowIndex
ariaRowSpan ​
ariaRowSpan:
string|null
Inherited from ​
LitElement.ariaRowSpan
ariaSelected ​
ariaSelected:
string|null
Inherited from ​
LitElement.ariaSelected
ariaSetSize ​
ariaSetSize:
string|null
Inherited from ​
LitElement.ariaSetSize
ariaSort ​
ariaSort:
string|null
Inherited from ​
LitElement.ariaSort
ariaValueMax ​
ariaValueMax:
string|null
Inherited from ​
LitElement.ariaValueMax
ariaValueMin ​
ariaValueMin:
string|null
Inherited from ​
LitElement.ariaValueMin
ariaValueNow ​
ariaValueNow:
string|null
Inherited from ​
LitElement.ariaValueNow
ariaValueText ​
ariaValueText:
string|null
Inherited from ​
LitElement.ariaValueText
assignedSlot ​
readonlyassignedSlot:HTMLSlotElement|null
Inherited from ​
LitElement.assignedSlot
ATTRIBUTE_NODE ​
readonlyATTRIBUTE_NODE:2
Inherited from ​
LitElement.ATTRIBUTE_NODE
attributes ​
readonlyattributes:NamedNodeMap
Inherited from ​
LitElement.attributes
attributeStyleMap ​
readonlyattributeStyleMap:StylePropertyMap
Inherited from ​
LitElement.attributeStyleMap
autocapitalize ​
autocapitalize:
string
Inherited from ​
LitElement.autocapitalize
autofocus ​
autofocus:
boolean
Inherited from ​
LitElement.autofocus
baseURI ​
readonlybaseURI:string
Returns node's node document's document base URL.
Inherited from ​
LitElement.baseURI
CDATA_SECTION_NODE ​
readonlyCDATA_SECTION_NODE:4
node is a CDATASection node.
Inherited from ​
LitElement.CDATA_SECTION_NODE
childElementCount ​
readonlychildElementCount:number
Inherited from ​
LitElement.childElementCount
childNodes ​
readonlychildNodes:NodeListOf<ChildNode>
Returns the children.
Inherited from ​
LitElement.childNodes
children ​
readonlychildren:HTMLCollection
Returns the child elements.
Inherited from ​
LitElement.children
classList ​
readonlyclassList:DOMTokenList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
Inherited from ​
LitElement.classList
className ​
className:
string
Returns the value of element's class content attribute. Can be set to change it.
Inherited from ​
LitElement.className
clientHeight ​
readonlyclientHeight:number
Inherited from ​
LitElement.clientHeight
clientLeft ​
readonlyclientLeft:number
Inherited from ​
LitElement.clientLeft
clientTop ​
readonlyclientTop:number
Inherited from ​
LitElement.clientTop
clientWidth ​
readonlyclientWidth:number
Inherited from ​
LitElement.clientWidth
COMMENT_NODE ​
readonlyCOMMENT_NODE:8
node is a Comment node.
Inherited from ​
LitElement.COMMENT_NODE
contentEditable ​
contentEditable:
string
Inherited from ​
LitElement.contentEditable
dataset ​
readonlydataset:DOMStringMap
Inherited from ​
LitElement.dataset
dir ​
dir:
string
Inherited from ​
LitElement.dir
DOCUMENT_FRAGMENT_NODE ​
readonlyDOCUMENT_FRAGMENT_NODE:11
node is a DocumentFragment node.
Inherited from ​
LitElement.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE ​
readonlyDOCUMENT_NODE:9
node is a document.
Inherited from ​
LitElement.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY ​
readonlyDOCUMENT_POSITION_CONTAINED_BY:16
Set when other is a descendant of node.
Inherited from ​
LitElement.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS ​
readonlyDOCUMENT_POSITION_CONTAINS:8
Set when other is an ancestor of node.
Inherited from ​
LitElement.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED ​
readonlyDOCUMENT_POSITION_DISCONNECTED:1
Set when node and other are not in the same tree.
Inherited from ​
LitElement.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING ​
readonlyDOCUMENT_POSITION_FOLLOWING:4
Set when other is following node.
Inherited from ​
LitElement.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC ​
readonlyDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32
Inherited from ​
LitElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING ​
readonlyDOCUMENT_POSITION_PRECEDING:2
Set when other is preceding node.
Inherited from ​
LitElement.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE ​
readonlyDOCUMENT_TYPE_NODE:10
node is a doctype.
Inherited from ​
LitElement.DOCUMENT_TYPE_NODE
draggable ​
draggable:
boolean
Inherited from ​
LitElement.draggable
ELEMENT_NODE ​
readonlyELEMENT_NODE:1
node is an element.
Inherited from ​
LitElement.ELEMENT_NODE
enterKeyHint ​
enterKeyHint:
string
Inherited from ​
LitElement.enterKeyHint
ENTITY_NODE ​
readonlyENTITY_NODE:6
Inherited from ​
LitElement.ENTITY_NODE
ENTITY_REFERENCE_NODE ​
readonlyENTITY_REFERENCE_NODE:5
Inherited from ​
LitElement.ENTITY_REFERENCE_NODE
firstChild ​
readonlyfirstChild:ChildNode|null
Returns the first child.
Inherited from ​
LitElement.firstChild
firstElementChild ​
readonlyfirstElementChild:Element|null
Returns the first child that is an element, and null otherwise.
Inherited from ​
LitElement.firstElementChild
hidden ​
hidden:
boolean
Inherited from ​
LitElement.hidden
id ​
id:
string
Returns the value of element's id content attribute. Can be set to change it.
Inherited from ​
LitElement.id
inert ​
inert:
boolean
Inherited from ​
LitElement.inert
innerHTML ​
innerHTML:
string
Inherited from ​
LitElement.innerHTML
innerText ​
innerText:
string
Inherited from ​
LitElement.innerText
inputMode ​
inputMode:
string
Inherited from ​
LitElement.inputMode
isConnected ​
readonlyisConnected:boolean
Returns true if node is connected and false otherwise.
Inherited from ​
LitElement.isConnected
isContentEditable ​
readonlyisContentEditable:boolean
Inherited from ​
LitElement.isContentEditable
lang ​
lang:
string
Inherited from ​
LitElement.lang
lastChild ​
readonlylastChild:ChildNode|null
Returns the last child.
Inherited from ​
LitElement.lastChild
lastElementChild ​
readonlylastElementChild:Element|null
Returns the last child that is an element, and null otherwise.
Inherited from ​
LitElement.lastElementChild
localName ​
readonlylocalName:string
Returns the local name.
Inherited from ​
LitElement.localName
namespaceURI ​
readonlynamespaceURI:string|null
Returns the namespace.
Inherited from ​
LitElement.namespaceURI
nextElementSibling ​
readonlynextElementSibling:Element|null
Returns the first following sibling that is an element, and null otherwise.
Inherited from ​
LitElement.nextElementSibling
nextSibling ​
readonlynextSibling:ChildNode|null
Returns the next sibling.
Inherited from ​
LitElement.nextSibling
nodeName ​
readonlynodeName:string
Returns a string appropriate for the type of node.
Inherited from ​
LitElement.nodeName
nodeType ​
readonlynodeType:number
Returns the type of node.
Inherited from ​
LitElement.nodeType
nodeValue ​
nodeValue:
string|null
Inherited from ​
LitElement.nodeValue
nonce? ​
optionalnonce:string
Inherited from ​
LitElement.nonce
NOTATION_NODE ​
readonlyNOTATION_NODE:12
Inherited from ​
LitElement.NOTATION_NODE
offsetHeight ​
readonlyoffsetHeight:number
Inherited from ​
LitElement.offsetHeight
offsetLeft ​
readonlyoffsetLeft:number
Inherited from ​
LitElement.offsetLeft
offsetParent ​
readonlyoffsetParent:Element|null
Inherited from ​
LitElement.offsetParent
offsetTop ​
readonlyoffsetTop:number
Inherited from ​
LitElement.offsetTop
offsetWidth ​
readonlyoffsetWidth:number
Inherited from ​
LitElement.offsetWidth
onabort ​
onabort: (
this,ev) =>any|null
Fires when the user aborts the download.
Param ​
The event.
Inherited from ​
LitElement.onabort
onanimationcancel ​
onanimationcancel: (
this,ev) =>any|null
Inherited from ​
LitElement.onanimationcancel
onanimationend ​
onanimationend: (
this,ev) =>any|null
Inherited from ​
LitElement.onanimationend
onanimationiteration ​
onanimationiteration: (
this,ev) =>any|null
Inherited from ​
LitElement.onanimationiteration
onanimationstart ​
onanimationstart: (
this,ev) =>any|null
Inherited from ​
LitElement.onanimationstart
onauxclick ​
onauxclick: (
this,ev) =>any|null
Inherited from ​
LitElement.onauxclick
onbeforeinput ​
onbeforeinput: (
this,ev) =>any|null
Inherited from ​
LitElement.onbeforeinput
onblur ​
onblur: (
this,ev) =>any|null
Fires when the object loses the input focus.
Param ​
The focus event.
Inherited from ​
LitElement.onblur
oncancel ​
oncancel: (
this,ev) =>any|null
Inherited from ​
LitElement.oncancel
oncanplay ​
oncanplay: (
this,ev) =>any|null
Occurs when playback is possible, but would require further buffering.
Param ​
The event.
Inherited from ​
LitElement.oncanplay
oncanplaythrough ​
oncanplaythrough: (
this,ev) =>any|null
Inherited from ​
LitElement.oncanplaythrough
onchange ​
onchange: (
this,ev) =>any|null
Fires when the contents of the object or selection have changed.
Param ​
The event.
Inherited from ​
LitElement.onchange
onclick ​
onclick: (
this,ev) =>any|null
Fires when the user clicks the left mouse button on the object
Param ​
The mouse event.
Inherited from ​
LitElement.onclick
onclose ​
onclose: (
this,ev) =>any|null
Inherited from ​
LitElement.onclose
oncontextmenu ​
oncontextmenu: (
this,ev) =>any|null
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Param ​
The mouse event.
Inherited from ​
LitElement.oncontextmenu
oncopy ​
oncopy: (
this,ev) =>any|null
Inherited from ​
LitElement.oncopy
oncuechange ​
oncuechange: (
this,ev) =>any|null
Inherited from ​
LitElement.oncuechange
oncut ​
oncut: (
this,ev) =>any|null
Inherited from ​
LitElement.oncut
ondblclick ​
ondblclick: (
this,ev) =>any|null
Fires when the user double-clicks the object.
Param ​
The mouse event.
Inherited from ​
LitElement.ondblclick
ondrag ​
ondrag: (
this,ev) =>any|null
Fires on the source object continuously during a drag operation.
Param ​
The event.
Inherited from ​
LitElement.ondrag
ondragend ​
ondragend: (
this,ev) =>any|null
Fires on the source object when the user releases the mouse at the close of a drag operation.
Param ​
The event.
Inherited from ​
LitElement.ondragend
ondragenter ​
ondragenter: (
this,ev) =>any|null
Fires on the target element when the user drags the object to a valid drop target.
Param ​
The drag event.
Inherited from ​
LitElement.ondragenter
ondragleave ​
ondragleave: (
this,ev) =>any|null
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Param ​
The drag event.
Inherited from ​
LitElement.ondragleave
ondragover ​
ondragover: (
this,ev) =>any|null
Fires on the target element continuously while the user drags the object over a valid drop target.
Param ​
The event.
Inherited from ​
LitElement.ondragover
ondragstart ​
ondragstart: (
this,ev) =>any|null
Fires on the source object when the user starts to drag a text selection or selected object.
Param ​
The event.
Inherited from ​
LitElement.ondragstart
ondrop ​
ondrop: (
this,ev) =>any|null
Inherited from ​
LitElement.ondrop
ondurationchange ​
ondurationchange: (
this,ev) =>any|null
Occurs when the duration attribute is updated.
Param ​
The event.
Inherited from ​
LitElement.ondurationchange
onemptied ​
onemptied: (
this,ev) =>any|null
Occurs when the media element is reset to its initial state.
Param ​
The event.
Inherited from ​
LitElement.onemptied
onended ​
onended: (
this,ev) =>any|null
Occurs when the end of playback is reached.
Param ​
The event
Inherited from ​
LitElement.onended
onerror ​
onerror:
OnErrorEventHandler
Fires when an error occurs during object loading.
Param ​
The event.
Inherited from ​
LitElement.onerror
onfocus ​
onfocus: (
this,ev) =>any|null
Fires when the object receives focus.
Param ​
The event.
Inherited from ​
LitElement.onfocus
onformdata ​
onformdata: (
this,ev) =>any|null
Inherited from ​
LitElement.onformdata
onfullscreenchange ​
onfullscreenchange: (
this,ev) =>any|null
Inherited from ​
LitElement.onfullscreenchange
onfullscreenerror ​
onfullscreenerror: (
this,ev) =>any|null
Inherited from ​
LitElement.onfullscreenerror
ongotpointercapture ​
ongotpointercapture: (
this,ev) =>any|null
Inherited from ​
LitElement.ongotpointercapture
oninput ​
oninput: (
this,ev) =>any|null
Inherited from ​
LitElement.oninput
oninvalid ​
oninvalid: (
this,ev) =>any|null
Inherited from ​
LitElement.oninvalid
onkeydown ​
onkeydown: (
this,ev) =>any|null
Fires when the user presses a key.
Param ​
The keyboard event
Inherited from ​
LitElement.onkeydown
onkeypress ​
onkeypress: (
this,ev) =>any|null
Fires when the user presses an alphanumeric key.
Param ​
The event.
Deprecated ​
Inherited from ​
LitElement.onkeypress
onkeyup ​
onkeyup: (
this,ev) =>any|null
Fires when the user releases a key.
Param ​
The keyboard event
Inherited from ​
LitElement.onkeyup
onload ​
onload: (
this,ev) =>any|null
Fires immediately after the browser loads the object.
Param ​
The event.
Inherited from ​
LitElement.onload
onloadeddata ​
onloadeddata: (
this,ev) =>any|null
Occurs when media data is loaded at the current playback position.
Param ​
The event.
Inherited from ​
LitElement.onloadeddata
onloadedmetadata ​
onloadedmetadata: (
this,ev) =>any|null
Occurs when the duration and dimensions of the media have been determined.
Param ​
The event.
Inherited from ​
LitElement.onloadedmetadata
onloadstart ​
onloadstart: (
this,ev) =>any|null
Occurs when Internet Explorer begins looking for media data.
Param ​
The event.
Inherited from ​
LitElement.onloadstart
onlostpointercapture ​
onlostpointercapture: (
this,ev) =>any|null
Inherited from ​
LitElement.onlostpointercapture
onmousedown ​
onmousedown: (
this,ev) =>any|null
Fires when the user clicks the object with either mouse button.
Param ​
The mouse event.
Inherited from ​
LitElement.onmousedown
onmouseenter ​
onmouseenter: (
this,ev) =>any|null
Inherited from ​
LitElement.onmouseenter
onmouseleave ​
onmouseleave: (
this,ev) =>any|null
Inherited from ​
LitElement.onmouseleave
onmousemove ​
onmousemove: (
this,ev) =>any|null
Fires when the user moves the mouse over the object.
Param ​
The mouse event.
Inherited from ​
LitElement.onmousemove
onmouseout ​
onmouseout: (
this,ev) =>any|null
Fires when the user moves the mouse pointer outside the boundaries of the object.
Param ​
The mouse event.
Inherited from ​
LitElement.onmouseout
onmouseover ​
onmouseover: (
this,ev) =>any|null
Fires when the user moves the mouse pointer into the object.
Param ​
The mouse event.
Inherited from ​
LitElement.onmouseover
onmouseup ​
onmouseup: (
this,ev) =>any|null
Fires when the user releases a mouse button while the mouse is over the object.
Param ​
The mouse event.
Inherited from ​
LitElement.onmouseup
onpaste ​
onpaste: (
this,ev) =>any|null
Inherited from ​
LitElement.onpaste
onpause ​
onpause: (
this,ev) =>any|null
Occurs when playback is paused.
Param ​
The event.
Inherited from ​
LitElement.onpause
onplay ​
onplay: (
this,ev) =>any|null
Occurs when the play method is requested.
Param ​
The event.
Inherited from ​
LitElement.onplay
onplaying ​
onplaying: (
this,ev) =>any|null
Occurs when the audio or video has started playing.
Param ​
The event.
Inherited from ​
LitElement.onplaying
onpointercancel ​
onpointercancel: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointercancel
onpointerdown ​
onpointerdown: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointerdown
onpointerenter ​
onpointerenter: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointerenter
onpointerleave ​
onpointerleave: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointerleave
onpointermove ​
onpointermove: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointermove
onpointerout ​
onpointerout: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointerout
onpointerover ​
onpointerover: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointerover
onpointerup ​
onpointerup: (
this,ev) =>any|null
Inherited from ​
LitElement.onpointerup
onprogress ​
onprogress: (
this,ev) =>any|null
Occurs to indicate progress while downloading media data.
Param ​
The event.
Inherited from ​
LitElement.onprogress
onratechange ​
onratechange: (
this,ev) =>any|null
Occurs when the playback rate is increased or decreased.
Param ​
The event.
Inherited from ​
LitElement.onratechange
onreset ​
onreset: (
this,ev) =>any|null
Fires when the user resets a form.
Param ​
The event.
Inherited from ​
LitElement.onreset
onresize ​
onresize: (
this,ev) =>any|null
Inherited from ​
LitElement.onresize
onscroll ​
onscroll: (
this,ev) =>any|null
Fires when the user repositions the scroll box in the scroll bar on the object.
Param ​
The event.
Inherited from ​
LitElement.onscroll
onscrollend ​
onscrollend: (
this,ev) =>any|null
Inherited from ​
LitElement.onscrollend
onsecuritypolicyviolation ​
onsecuritypolicyviolation: (
this,ev) =>any|null
Inherited from ​
LitElement.onsecuritypolicyviolation
onseeked ​
onseeked: (
this,ev) =>any|null
Occurs when the seek operation ends.
Param ​
The event.
Inherited from ​
LitElement.onseeked
onseeking ​
onseeking: (
this,ev) =>any|null
Occurs when the current playback position is moved.
Param ​
The event.
Inherited from ​
LitElement.onseeking
onselect ​
onselect: (
this,ev) =>any|null
Fires when the current selection changes.
Param ​
The event.
Inherited from ​
LitElement.onselect
onselectionchange ​
onselectionchange: (
this,ev) =>any|null
Inherited from ​
LitElement.onselectionchange
onselectstart ​
onselectstart: (
this,ev) =>any|null
Inherited from ​
LitElement.onselectstart
onslotchange ​
onslotchange: (
this,ev) =>any|null
Inherited from ​
LitElement.onslotchange
onstalled ​
onstalled: (
this,ev) =>any|null
Occurs when the download has stopped.
Param ​
The event.
Inherited from ​
LitElement.onstalled
onsubmit ​
onsubmit: (
this,ev) =>any|null
Inherited from ​
LitElement.onsubmit
onsuspend ​
onsuspend: (
this,ev) =>any|null
Occurs if the load operation has been intentionally halted.
Param ​
The event.
Inherited from ​
LitElement.onsuspend
ontimeupdate ​
ontimeupdate: (
this,ev) =>any|null
Occurs to indicate the current playback position.
Param ​
The event.
Inherited from ​
LitElement.ontimeupdate
ontoggle ​
ontoggle: (
this,ev) =>any|null
Inherited from ​
LitElement.ontoggle
ontouchcancel? ​
optionalontouchcancel: (this,ev) =>any|null
Inherited from ​
LitElement.ontouchcancel
ontouchend? ​
optionalontouchend: (this,ev) =>any|null
Inherited from ​
LitElement.ontouchend
ontouchmove? ​
optionalontouchmove: (this,ev) =>any|null
Inherited from ​
LitElement.ontouchmove
ontouchstart? ​
optionalontouchstart: (this,ev) =>any|null
Inherited from ​
LitElement.ontouchstart
ontransitioncancel ​
ontransitioncancel: (
this,ev) =>any|null
Inherited from ​
LitElement.ontransitioncancel
ontransitionend ​
ontransitionend: (
this,ev) =>any|null
Inherited from ​
LitElement.ontransitionend
ontransitionrun ​
ontransitionrun: (
this,ev) =>any|null
Inherited from ​
LitElement.ontransitionrun
ontransitionstart ​
ontransitionstart: (
this,ev) =>any|null
Inherited from ​
LitElement.ontransitionstart
onvolumechange ​
onvolumechange: (
this,ev) =>any|null
Occurs when the volume is changed, or playback is muted or unmuted.
Param ​
The event.
Inherited from ​
LitElement.onvolumechange
onwaiting ​
onwaiting: (
this,ev) =>any|null
Occurs when playback stops because the next frame of a video resource is not available.
Param ​
The event.
Inherited from ​
LitElement.onwaiting
onwebkitanimationend ​
onwebkitanimationend: (
this,ev) =>any|null
Deprecated ​
This is a legacy alias of onanimationend.
Inherited from ​
LitElement.onwebkitanimationend
onwebkitanimationiteration ​
onwebkitanimationiteration: (
this,ev) =>any|null
Deprecated ​
This is a legacy alias of onanimationiteration.
Inherited from ​
LitElement.onwebkitanimationiteration
onwebkitanimationstart ​
onwebkitanimationstart: (
this,ev) =>any|null
Deprecated ​
This is a legacy alias of onanimationstart.
Inherited from ​
LitElement.onwebkitanimationstart
onwebkittransitionend ​
onwebkittransitionend: (
this,ev) =>any|null
Deprecated ​
This is a legacy alias of ontransitionend.
Inherited from ​
LitElement.onwebkittransitionend
onwheel ​
onwheel: (
this,ev) =>any|null
Inherited from ​
LitElement.onwheel
outerHTML ​
outerHTML:
string
Inherited from ​
LitElement.outerHTML
outerText ​
outerText:
string
Inherited from ​
LitElement.outerText
ownerDocument ​
readonlyownerDocument:Document
Returns the node document. Returns null for documents.
Inherited from ​
LitElement.ownerDocument
parentElement ​
readonlyparentElement:HTMLElement|null
Returns the parent element.
Inherited from ​
LitElement.parentElement
parentNode ​
readonlyparentNode:ParentNode|null
Returns the parent.
Inherited from ​
LitElement.parentNode
part ​
readonlypart:DOMTokenList
Inherited from ​
LitElement.part
popover ​
popover:
string|null
Inherited from ​
LitElement.popover
prefix ​
readonlyprefix:string|null
Returns the namespace prefix.
Inherited from ​
LitElement.prefix
previousElementSibling ​
readonlypreviousElementSibling:Element|null
Returns the first preceding sibling that is an element, and null otherwise.
Inherited from ​
LitElement.previousElementSibling
previousSibling ​
readonlypreviousSibling:ChildNode|null
Returns the previous sibling.
Inherited from ​
LitElement.previousSibling
PROCESSING_INSTRUCTION_NODE ​
readonlyPROCESSING_INSTRUCTION_NODE:7
node is a ProcessingInstruction node.
Inherited from ​
LitElement.PROCESSING_INSTRUCTION_NODE
role ​
role:
string|null
Inherited from ​
LitElement.role
scrollHeight ​
readonlyscrollHeight:number
Inherited from ​
LitElement.scrollHeight
scrollLeft ​
scrollLeft:
number
Inherited from ​
LitElement.scrollLeft
scrollTop ​
scrollTop:
number
Inherited from ​
LitElement.scrollTop
scrollWidth ​
readonlyscrollWidth:number
Inherited from ​
LitElement.scrollWidth
shadowRoot ​
readonlyshadowRoot:ShadowRoot|null
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
Inherited from ​
LitElement.shadowRoot
slot ​
slot:
string
Returns the value of element's slot content attribute. Can be set to change it.
Inherited from ​
LitElement.slot
spellcheck ​
spellcheck:
boolean
Inherited from ​
LitElement.spellcheck
style ​
readonlystyle:CSSStyleDeclaration
Inherited from ​
LitElement.style
tabIndex ​
tabIndex:
number
Inherited from ​
LitElement.tabIndex
tagName ​
readonlytagName:string
Returns the HTML-uppercased qualified name.
Inherited from ​
LitElement.tagName
TEXT_NODE ​
readonlyTEXT_NODE:3
node is a Text node.
Inherited from ​
LitElement.TEXT_NODE
textContent ​
textContent:
string|null
Inherited from ​
LitElement.textContent
title ​
title:
string
Inherited from ​
LitElement.title
translate ​
translate:
boolean
Inherited from ​
LitElement.translate
_$litElement$ ​
static_$litElement$:boolean
Inherited from ​
LitElement._$litElement$
_initializers? ​
staticoptional_initializers:Initializer[]
Inherited from ​
LitElement._initializers
[metadata] ​
static[metadata]:object&Record<PropertyKey,unknown>
Inherited from ​
LitElement.[metadata]
finalized ​
protectedstaticfinalized:true|undefined
Marks class as having been finalized, which includes creating properties from static properties, but does not include all properties created from decorators.
Nocollapse ​
Inherited from ​
LitElement.finalized
context ​
mapElement ​
olMap ​
Get Signature ​
get olMap():
Map|null
Returns ​
Map | null
addEventListener() ​
Call Signature ​
addEventListener<
K>(type,listener,options?):void
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementEventMap |
Parameters ​
| Parameter | Type |
|---|---|
type | K |
listener | (this, ev) => any |
options? | boolean | AddEventListenerOptions |
Returns ​
void
Inherited from ​
LitElement.addEventListener
Call Signature ​
addEventListener(
type,listener,options?):void
Parameters ​
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns ​
void
Inherited from ​
LitElement.addEventListener
after() ​
after(...
nodes):void
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.
Parameters ​
| Parameter | Type |
|---|---|
...nodes | (string | Node)[] |
Returns ​
void
Inherited from ​
LitElement.after
animate() ​
animate(
keyframes,options?):Animation
Parameters ​
| Parameter | Type |
|---|---|
keyframes | Keyframe[] | PropertyIndexedKeyframes | null |
options? | number | KeyframeAnimationOptions |
Returns ​
Animation
Inherited from ​
LitElement.animate
append() ​
append(...
nodes):void
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.
Parameters ​
| Parameter | Type |
|---|---|
...nodes | (string | Node)[] |
Returns ​
void
Inherited from ​
LitElement.append
appendChild() ​
appendChild<
T>(node):T
Type Parameters ​
| Type Parameter |
|---|
T extends Node |
Parameters ​
| Parameter | Type |
|---|---|
node | T |
Returns ​
T
Inherited from ​
LitElement.appendChild
attachInternals() ​
attachInternals():
ElementInternals
Returns ​
ElementInternals
Inherited from ​
LitElement.attachInternals
attachShadow() ​
attachShadow(
init):ShadowRoot
Creates a shadow root for element and returns it.
Parameters ​
| Parameter | Type |
|---|---|
init | ShadowRootInit |
Returns ​
ShadowRoot
Inherited from ​
LitElement.attachShadow
before() ​
before(...
nodes):void
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.
Parameters ​
| Parameter | Type |
|---|---|
...nodes | (string | Node)[] |
Returns ​
void
Inherited from ​
LitElement.before
blur() ​
blur():
void
Returns ​
void
Inherited from ​
LitElement.blur
checkVisibility() ​
checkVisibility(
options?):boolean
Parameters ​
| Parameter | Type |
|---|---|
options? | CheckVisibilityOptions |
Returns ​
boolean
Inherited from ​
LitElement.checkVisibility
click() ​
click():
void
Returns ​
void
Inherited from ​
LitElement.click
cloneNode() ​
cloneNode(
deep?):Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Parameters ​
| Parameter | Type |
|---|---|
deep? | boolean |
Returns ​
Node
Inherited from ​
LitElement.cloneNode
closest() ​
Call Signature ​
closest<
K>(selector):HTMLElementTagNameMap[K] |null
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selector | K |
Returns ​
HTMLElementTagNameMap[K] | null
Inherited from ​
LitElement.closest
Call Signature ​
closest<
K>(selector):SVGElementTagNameMap[K] |null
Type Parameters ​
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selector | K |
Returns ​
SVGElementTagNameMap[K] | null
Inherited from ​
LitElement.closest
Call Signature ​
closest<
K>(selector):MathMLElementTagNameMap[K] |null
Type Parameters ​
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selector | K |
Returns ​
MathMLElementTagNameMap[K] | null
Inherited from ​
LitElement.closest
Call Signature ​
closest<
E>(selectors):E|null
Type Parameters ​
| Type Parameter | Default type |
|---|---|
E extends Element | Element |
Parameters ​
| Parameter | Type |
|---|---|
selectors | string |
Returns ​
E | null
Inherited from ​
LitElement.closest
compareDocumentPosition() ​
compareDocumentPosition(
other):number
Returns a bitmask indicating the position of other relative to node.
Parameters ​
| Parameter | Type |
|---|---|
other | Node |
Returns ​
number
Inherited from ​
LitElement.compareDocumentPosition
computedStyleMap() ​
computedStyleMap():
StylePropertyMapReadOnly
Returns ​
StylePropertyMapReadOnly
Inherited from ​
LitElement.computedStyleMap
contains() ​
contains(
other):boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters ​
| Parameter | Type |
|---|---|
other | Node | null |
Returns ​
boolean
Inherited from ​
LitElement.contains
contextHasChanged() ​
contextHasChanged(
value,oldValue):Promise<void>
Parameters ​
| Parameter | Type |
|---|---|
value | MapContext | undefined |
oldValue | MapContext |
Returns ​
Promise<void>
dispatchEvent() ​
dispatchEvent(
event):boolean
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.
Parameters ​
| Parameter | Type |
|---|---|
event | Event |
Returns ​
boolean
Inherited from ​
LitElement.dispatchEvent
focus() ​
focus(
options?):void
Parameters ​
| Parameter | Type |
|---|---|
options? | FocusOptions |
Returns ​
void
Inherited from ​
LitElement.focus
getAnimations() ​
getAnimations(
options?):Animation[]
Parameters ​
| Parameter | Type |
|---|---|
options? | GetAnimationsOptions |
Returns ​
Animation[]
Inherited from ​
LitElement.getAnimations
getAttribute() ​
getAttribute(
qualifiedName):string|null
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns ​
string | null
Inherited from ​
LitElement.getAttribute
getAttributeNames() ​
getAttributeNames():
string[]
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns ​
string[]
Inherited from ​
LitElement.getAttributeNames
getAttributeNode() ​
getAttributeNode(
qualifiedName):Attr|null
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns ​
Attr | null
Inherited from ​
LitElement.getAttributeNode
getAttributeNodeNS() ​
getAttributeNodeNS(
namespace,localName):Attr|null
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
localName | string |
Returns ​
Attr | null
Inherited from ​
LitElement.getAttributeNodeNS
getAttributeNS() ​
getAttributeNS(
namespace,localName):string|null
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
localName | string |
Returns ​
string | null
Inherited from ​
LitElement.getAttributeNS
getBoundingClientRect() ​
getBoundingClientRect():
DOMRect
Returns ​
DOMRect
Inherited from ​
LitElement.getBoundingClientRect
getClientRects() ​
getClientRects():
DOMRectList
Returns ​
DOMRectList
Inherited from ​
LitElement.getClientRects
getElementsByClassName() ​
getElementsByClassName(
classNames):HTMLCollectionOf<Element>
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.
Parameters ​
| Parameter | Type |
|---|---|
classNames | string |
Returns ​
HTMLCollectionOf<Element>
Inherited from ​
LitElement.getElementsByClassName
getElementsByTagName() ​
Call Signature ​
getElementsByTagName<
K>(qualifiedName):HTMLCollectionOf<HTMLElementTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns ​
HTMLCollectionOf<HTMLElementTagNameMap[K]>
Inherited from ​
LitElement.getElementsByTagName
Call Signature ​
getElementsByTagName<
K>(qualifiedName):HTMLCollectionOf<SVGElementTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns ​
HTMLCollectionOf<SVGElementTagNameMap[K]>
Inherited from ​
LitElement.getElementsByTagName
Call Signature ​
getElementsByTagName<
K>(qualifiedName):HTMLCollectionOf<MathMLElementTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns ​
HTMLCollectionOf<MathMLElementTagNameMap[K]>
Inherited from ​
LitElement.getElementsByTagName
Call Signature ​
getElementsByTagName<
K>(qualifiedName):HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | K |
Returns ​
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Deprecated ​
Inherited from ​
LitElement.getElementsByTagName
Call Signature ​
getElementsByTagName(
qualifiedName):HTMLCollectionOf<Element>
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns ​
HTMLCollectionOf<Element>
Inherited from ​
LitElement.getElementsByTagName
getElementsByTagNameNS() ​
Call Signature ​
getElementsByTagNameNS(
namespaceURI,localName):HTMLCollectionOf<HTMLElement>
Parameters ​
| Parameter | Type |
|---|---|
namespaceURI | "http://www.w3.org/1999/xhtml" |
localName | string |
Returns ​
HTMLCollectionOf<HTMLElement>
Inherited from ​
LitElement.getElementsByTagNameNS
Call Signature ​
getElementsByTagNameNS(
namespaceURI,localName):HTMLCollectionOf<SVGElement>
Parameters ​
| Parameter | Type |
|---|---|
namespaceURI | "http://www.w3.org/2000/svg" |
localName | string |
Returns ​
HTMLCollectionOf<SVGElement>
Inherited from ​
LitElement.getElementsByTagNameNS
Call Signature ​
getElementsByTagNameNS(
namespaceURI,localName):HTMLCollectionOf<MathMLElement>
Parameters ​
| Parameter | Type |
|---|---|
namespaceURI | "http://www.w3.org/1998/Math/MathML" |
localName | string |
Returns ​
HTMLCollectionOf<MathMLElement>
Inherited from ​
LitElement.getElementsByTagNameNS
Call Signature ​
getElementsByTagNameNS(
namespace,localName):HTMLCollectionOf<Element>
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
localName | string |
Returns ​
HTMLCollectionOf<Element>
Inherited from ​
LitElement.getElementsByTagNameNS
getRootNode() ​
getRootNode(
options?):Node
Returns node's root.
Parameters ​
| Parameter | Type |
|---|---|
options? | GetRootNodeOptions |
Returns ​
Node
Inherited from ​
LitElement.getRootNode
hasAttribute() ​
hasAttribute(
qualifiedName):boolean
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns ​
boolean
Inherited from ​
LitElement.hasAttribute
hasAttributeNS() ​
hasAttributeNS(
namespace,localName):boolean
Returns true if element has an attribute whose namespace is namespace and local name is localName.
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
localName | string |
Returns ​
boolean
Inherited from ​
LitElement.hasAttributeNS
hasAttributes() ​
hasAttributes():
boolean
Returns true if element has attributes, and false otherwise.
Returns ​
boolean
Inherited from ​
LitElement.hasAttributes
hasChildNodes() ​
hasChildNodes():
boolean
Returns whether node has children.
Returns ​
boolean
Inherited from ​
LitElement.hasChildNodes
hasPointerCapture() ​
hasPointerCapture(
pointerId):boolean
Parameters ​
| Parameter | Type |
|---|---|
pointerId | number |
Returns ​
boolean
Inherited from ​
LitElement.hasPointerCapture
hidePopover() ​
hidePopover():
void
Returns ​
void
Inherited from ​
LitElement.hidePopover
insertAdjacentElement() ​
insertAdjacentElement(
where,element):Element|null
Parameters ​
| Parameter | Type |
|---|---|
where | InsertPosition |
element | Element |
Returns ​
Element | null
Inherited from ​
LitElement.insertAdjacentElement
insertAdjacentHTML() ​
insertAdjacentHTML(
position,text):void
Parameters ​
| Parameter | Type |
|---|---|
position | InsertPosition |
text | string |
Returns ​
void
Inherited from ​
LitElement.insertAdjacentHTML
insertAdjacentText() ​
insertAdjacentText(
where,data):void
Parameters ​
| Parameter | Type |
|---|---|
where | InsertPosition |
data | string |
Returns ​
void
Inherited from ​
LitElement.insertAdjacentText
insertBefore() ​
insertBefore<
T>(node,child):T
Type Parameters ​
| Type Parameter |
|---|
T extends Node |
Parameters ​
| Parameter | Type |
|---|---|
node | T |
child | Node | null |
Returns ​
T
Inherited from ​
LitElement.insertBefore
isDefaultNamespace() ​
isDefaultNamespace(
namespace):boolean
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
Returns ​
boolean
Inherited from ​
LitElement.isDefaultNamespace
isEqualNode() ​
isEqualNode(
otherNode):boolean
Returns whether node and otherNode have the same properties.
Parameters ​
| Parameter | Type |
|---|---|
otherNode | Node | null |
Returns ​
boolean
Inherited from ​
LitElement.isEqualNode
isSameNode() ​
isSameNode(
otherNode):boolean
Parameters ​
| Parameter | Type |
|---|---|
otherNode | Node | null |
Returns ​
boolean
Inherited from ​
LitElement.isSameNode
lookupNamespaceURI() ​
lookupNamespaceURI(
prefix):string|null
Parameters ​
| Parameter | Type |
|---|---|
prefix | string | null |
Returns ​
string | null
Inherited from ​
LitElement.lookupNamespaceURI
lookupPrefix() ​
lookupPrefix(
namespace):string|null
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
Returns ​
string | null
Inherited from ​
LitElement.lookupPrefix
matches() ​
matches(
selectors):boolean
Returns true if matching selectors against element's root yields element, and false otherwise.
Parameters ​
| Parameter | Type |
|---|---|
selectors | string |
Returns ​
boolean
Inherited from ​
LitElement.matches
normalize() ​
normalize():
void
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns ​
void
Inherited from ​
LitElement.normalize
prepend() ​
prepend(...
nodes):void
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.
Parameters ​
| Parameter | Type |
|---|---|
...nodes | (string | Node)[] |
Returns ​
void
Inherited from ​
LitElement.prepend
querySelector() ​
Call Signature ​
querySelector<
K>(selectors):HTMLElementTagNameMap[K] |null
Returns the first element that is a descendant of node that matches selectors.
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
HTMLElementTagNameMap[K] | null
Inherited from ​
LitElement.querySelector
Call Signature ​
querySelector<
K>(selectors):SVGElementTagNameMap[K] |null
Type Parameters ​
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
SVGElementTagNameMap[K] | null
Inherited from ​
LitElement.querySelector
Call Signature ​
querySelector<
K>(selectors):MathMLElementTagNameMap[K] |null
Type Parameters ​
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
MathMLElementTagNameMap[K] | null
Inherited from ​
LitElement.querySelector
Call Signature ​
querySelector<
K>(selectors):HTMLElementDeprecatedTagNameMap[K] |null
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
HTMLElementDeprecatedTagNameMap[K] | null
Deprecated ​
Inherited from ​
LitElement.querySelector
Call Signature ​
querySelector<
E>(selectors):E|null
Type Parameters ​
| Type Parameter | Default type |
|---|---|
E extends Element | Element |
Parameters ​
| Parameter | Type |
|---|---|
selectors | string |
Returns ​
E | null
Inherited from ​
LitElement.querySelector
querySelectorAll() ​
Call Signature ​
querySelectorAll<
K>(selectors):NodeListOf<HTMLElementTagNameMap[K]>
Returns all element descendants of node that match selectors.
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
NodeListOf<HTMLElementTagNameMap[K]>
Inherited from ​
LitElement.querySelectorAll
Call Signature ​
querySelectorAll<
K>(selectors):NodeListOf<SVGElementTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof SVGElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
NodeListOf<SVGElementTagNameMap[K]>
Inherited from ​
LitElement.querySelectorAll
Call Signature ​
querySelectorAll<
K>(selectors):NodeListOf<MathMLElementTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof MathMLElementTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
NodeListOf<MathMLElementTagNameMap[K]>
Inherited from ​
LitElement.querySelectorAll
Call Signature ​
querySelectorAll<
K>(selectors):NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters ​
| Parameter | Type |
|---|---|
selectors | K |
Returns ​
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Deprecated ​
Inherited from ​
LitElement.querySelectorAll
Call Signature ​
querySelectorAll<
E>(selectors):NodeListOf<E>
Type Parameters ​
| Type Parameter | Default type |
|---|---|
E extends Element | Element |
Parameters ​
| Parameter | Type |
|---|---|
selectors | string |
Returns ​
NodeListOf<E>
Inherited from ​
LitElement.querySelectorAll
releasePointerCapture() ​
releasePointerCapture(
pointerId):void
Parameters ​
| Parameter | Type |
|---|---|
pointerId | number |
Returns ​
void
Inherited from ​
LitElement.releasePointerCapture
remove() ​
remove():
void
Removes node.
Returns ​
void
Inherited from ​
LitElement.remove
removeAttribute() ​
removeAttribute(
qualifiedName):void
Removes element's first attribute whose qualified name is qualifiedName.
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
Returns ​
void
Inherited from ​
LitElement.removeAttribute
removeAttributeNode() ​
removeAttributeNode(
attr):Attr
Parameters ​
| Parameter | Type |
|---|---|
attr | Attr |
Returns ​
Attr
Inherited from ​
LitElement.removeAttributeNode
removeAttributeNS() ​
removeAttributeNS(
namespace,localName):void
Removes element's attribute whose namespace is namespace and local name is localName.
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
localName | string |
Returns ​
void
Inherited from ​
LitElement.removeAttributeNS
removeChild() ​
removeChild<
T>(child):T
Type Parameters ​
| Type Parameter |
|---|
T extends Node |
Parameters ​
| Parameter | Type |
|---|---|
child | T |
Returns ​
T
Inherited from ​
LitElement.removeChild
removeEventListener() ​
Call Signature ​
removeEventListener<
K>(type,listener,options?):void
Type Parameters ​
| Type Parameter |
|---|
K extends keyof HTMLElementEventMap |
Parameters ​
| Parameter | Type |
|---|---|
type | K |
listener | (this, ev) => any |
options? | boolean | EventListenerOptions |
Returns ​
void
Inherited from ​
LitElement.removeEventListener
Call Signature ​
removeEventListener(
type,listener,options?):void
Parameters ​
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns ​
void
Inherited from ​
LitElement.removeEventListener
replaceChild() ​
replaceChild<
T>(node,child):T
Type Parameters ​
| Type Parameter |
|---|
T extends Node |
Parameters ​
| Parameter | Type |
|---|---|
node | Node |
child | T |
Returns ​
T
Inherited from ​
LitElement.replaceChild
replaceChildren() ​
replaceChildren(...
nodes):void
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.
Parameters ​
| Parameter | Type |
|---|---|
...nodes | (string | Node)[] |
Returns ​
void
Inherited from ​
LitElement.replaceChildren
replaceWith() ​
replaceWith(...
nodes):void
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.
Parameters ​
| Parameter | Type |
|---|---|
...nodes | (string | Node)[] |
Returns ​
void
Inherited from ​
LitElement.replaceWith
requestFullscreen() ​
requestFullscreen(
options?):Promise<void>
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.
Parameters ​
| Parameter | Type |
|---|---|
options? | FullscreenOptions |
Returns ​
Promise<void>
Inherited from ​
LitElement.requestFullscreen
requestPointerLock() ​
requestPointerLock():
void
Returns ​
void
Inherited from ​
LitElement.requestPointerLock
scroll() ​
Call Signature ​
scroll(
options?):void
Parameters ​
| Parameter | Type |
|---|---|
options? | ScrollToOptions |
Returns ​
void
Inherited from ​
LitElement.scroll
Call Signature ​
scroll(
x,y):void
Parameters ​
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns ​
void
Inherited from ​
LitElement.scroll
scrollBy() ​
Call Signature ​
scrollBy(
options?):void
Parameters ​
| Parameter | Type |
|---|---|
options? | ScrollToOptions |
Returns ​
void
Inherited from ​
LitElement.scrollBy
Call Signature ​
scrollBy(
x,y):void
Parameters ​
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns ​
void
Inherited from ​
LitElement.scrollBy
scrollIntoView() ​
scrollIntoView(
arg?):void
Parameters ​
| Parameter | Type |
|---|---|
arg? | boolean | ScrollIntoViewOptions |
Returns ​
void
Inherited from ​
LitElement.scrollIntoView
scrollTo() ​
Call Signature ​
scrollTo(
options?):void
Parameters ​
| Parameter | Type |
|---|---|
options? | ScrollToOptions |
Returns ​
void
Inherited from ​
LitElement.scrollTo
Call Signature ​
scrollTo(
x,y):void
Parameters ​
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns ​
void
Inherited from ​
LitElement.scrollTo
setAttribute() ​
setAttribute(
qualifiedName,value):void
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
value | string |
Returns ​
void
Inherited from ​
LitElement.setAttribute
setAttributeNode() ​
setAttributeNode(
attr):Attr|null
Parameters ​
| Parameter | Type |
|---|---|
attr | Attr |
Returns ​
Attr | null
Inherited from ​
LitElement.setAttributeNode
setAttributeNodeNS() ​
setAttributeNodeNS(
attr):Attr|null
Parameters ​
| Parameter | Type |
|---|---|
attr | Attr |
Returns ​
Attr | null
Inherited from ​
LitElement.setAttributeNodeNS
setAttributeNS() ​
setAttributeNS(
namespace,qualifiedName,value):void
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
Parameters ​
| Parameter | Type |
|---|---|
namespace | string | null |
qualifiedName | string |
value | string |
Returns ​
void
Inherited from ​
LitElement.setAttributeNS
setPointerCapture() ​
setPointerCapture(
pointerId):void
Parameters ​
| Parameter | Type |
|---|---|
pointerId | number |
Returns ​
void
Inherited from ​
LitElement.setPointerCapture
showPopover() ​
showPopover():
void
Returns ​
void
Inherited from ​
LitElement.showPopover
toggleAttribute() ​
toggleAttribute(
qualifiedName,force?):boolean
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.
Parameters ​
| Parameter | Type |
|---|---|
qualifiedName | string |
force? | boolean |
Returns ​
boolean
Inherited from ​
LitElement.toggleAttribute
togglePopover() ​
togglePopover(
force?):void
Parameters ​
| Parameter | Type |
|---|---|
force? | boolean |
Returns ​
void
Inherited from ​
LitElement.togglePopover
webkitMatchesSelector() ​
webkitMatchesSelector(
selectors):boolean
Parameters ​
| Parameter | Type |
|---|---|
selectors | string |
Returns ​
boolean
Deprecated ​
This is a legacy alias of matches.
Inherited from ​
LitElement.webkitMatchesSelector
addInitializer() ​
staticaddInitializer(initializer):void
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.
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:
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 ​
| Parameter | Type |
|---|---|
initializer | Initializer |
Returns ​
void
Nocollapse ​
Inherited from ​
LitElement.addInitializer
finalize() ​
protectedstaticfinalize():void
Finishes setting up the class so that it's ready to be registered as a custom element and instantiated.
This method is called by the ReactiveElement.observedAttributes getter. If you override the observedAttributes getter, you must either call super.observedAttributes to trigger finalization, or call finalize() yourself.
Returns ​
void
Nocollapse ​
Inherited from ​
LitElement.finalize
attributes ​
observedAttributes ​
Get Signature ​
get
staticobservedAttributes():string[]
Returns a list of attributes corresponding to the registered properties.
Nocollapse ​
Returns ​
string[]
Inherited from ​
LitElement.observedAttributes
attributeChangedCallback() ​
attributeChangedCallback(
name,_old,value):void
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 using the lifecycle callbacks on MDN for more information about the attributeChangedCallback.
Parameters ​
| Parameter | Type |
|---|---|
name | string |
_old | string | null |
value | string | null |
Returns ​
void
Inherited from ​
LitElement.attributeChangedCallback
controllers ​
addController() ​
addController(
controller):void
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 ​
| Parameter | Type |
|---|---|
controller | ReactiveController |
Returns ​
void
Inherited from ​
LitElement.addController
removeController() ​
removeController(
controller):void
Removes a ReactiveController from the element.
Parameters ​
| Parameter | Type |
|---|---|
controller | ReactiveController |
Returns ​
void
Inherited from ​
LitElement.removeController
dev-mode ​
disableWarning()? ​
staticoptionaldisableWarning: (warningKind) =>void
Disable the given warning category for this class.
This method only exists in development builds, so it should be accessed with a guard like:
// Disable for all ReactiveElement subclasses
ReactiveElement.disableWarning?.('migration');
// Disable for only MyElement and subclasses
MyElement.disableWarning?.('migration');Parameters ​
| Parameter | Type |
|---|---|
warningKind | WarningKind |
Returns ​
void
Nocollapse ​
Inherited from ​
LitElement.disableWarning
enabledWarnings? ​
staticoptionalenabledWarnings:WarningKind[]
Read or set all the enabled warning categories for this class.
This property is only used in development builds.
Nocollapse ​
Inherited from ​
LitElement.enabledWarnings
enableWarning()? ​
staticoptionalenableWarning: (warningKind) =>void
Enable the given warning category for this class.
This method only exists in development builds, so it should be accessed with a guard like:
// Enable for all ReactiveElement subclasses
ReactiveElement.enableWarning?.('migration');
// Enable for only MyElement and subclasses
MyElement.enableWarning?.('migration');Parameters ​
| Parameter | Type |
|---|---|
warningKind | WarningKind |
Returns ​
void
Nocollapse ​
Inherited from ​
LitElement.enableWarning
lifecycle ​
connectedCallback() ​
connectedCallback():
void
Invoked when the component is added to the document's DOM.
In connectedCallback() you should setup tasks that should only occur when the element is connected to the document. The most common of these is adding event listeners to nodes external to the element, like a keydown event handler added to the window.
connectedCallback() {
super.connectedCallback();
addEventListener('keydown', this._handleKeydown);
}Typically, anything done in connectedCallback() should be undone when the element is disconnected, in disconnectedCallback().
Returns ​
void
Inherited from ​
LitElement.connectedCallback
disconnectedCallback() ​
disconnectedCallback():
void
Invoked when the component is removed from the document's DOM.
This callback is the main signal to the element that it may no longer be used. disconnectedCallback() should ensure that nothing is holding a reference to the element (such as event listeners added to nodes external to the element), so that it is free to be garbage collected.
disconnectedCallback() {
super.disconnectedCallback();
window.removeEventListener('keydown', this._handleKeydown);
}An element may be re-connected after being disconnected.
Returns ​
void
Inherited from ​
LitElement.disconnectedCallback
properties ​
elementProperties ​
staticelementProperties:PropertyDeclarationMap
Memoized list of all element properties, including any superclass properties. Created lazily on user subclasses when finalizing the class.
Nocollapse ​
Inherited from ​
LitElement.elementProperties
properties ​
staticproperties:PropertyDeclarations
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 ​
LitElement.properties
createProperty() ​
staticcreateProperty(name,options?):void
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:
static createProperty(name, options) {
options = Object.assign(options, {myOption: true});
super.createProperty(name, options);
}Parameters ​
| Parameter | Type |
|---|---|
name | PropertyKey |
options? | PropertyDeclaration<unknown, unknown> |
Returns ​
void
Nocollapse ​
Inherited from ​
LitElement.createProperty
getPropertyDescriptor() ​
protectedstaticgetPropertyDescriptor(name,key,options):PropertyDescriptor|undefined
Returns a property descriptor to be defined on the given named property. If no descriptor is returned, the property will not become an accessor. For example,
class MyElement extends LitElement {
static getPropertyDescriptor(name, key, options) {
const defaultDescriptor =
super.getPropertyDescriptor(name, key, options);
const setter = defaultDescriptor.set;
return {
get: defaultDescriptor.get,
set(value) {
setter.call(this, value);
// custom action.
},
configurable: true,
enumerable: true
}
}
}Parameters ​
| Parameter | Type |
|---|---|
name | PropertyKey |
key | string | symbol |
options | PropertyDeclaration |
Returns ​
PropertyDescriptor | undefined
Nocollapse ​
Inherited from ​
LitElement.getPropertyDescriptor
getPropertyOptions() ​
staticgetPropertyOptions(name):PropertyDeclaration<unknown,unknown>
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 ​
| Parameter | Type |
|---|---|
name | PropertyKey |
Returns ​
PropertyDeclaration<unknown, unknown>
Nocollapse ​
Final ​
Inherited from ​
LitElement.getPropertyOptions
rendering ​
renderOptions ​
readonlyrenderOptions:RenderOptions
Inherited from ​
LitElement.renderOptions
renderRoot ​
readonlyrenderRoot:HTMLElement|DocumentFragment
Node or ShadowRoot into which element DOM should be rendered. Defaults to an open shadowRoot.
Inherited from ​
LitElement.renderRoot
shadowRootOptions ​
staticshadowRootOptions:ShadowRootInit
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 ​
LitElement.shadowRootOptions
createRenderRoot() ​
protectedcreateRenderRoot():SdkMapElement
Returns ​
SdkMapElement
Overrides ​
LitElement.createRenderRoot
render() ​
render():
TemplateResult<1>
Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.
Returns ​
TemplateResult<1>
Overrides ​
LitElement.render
styles ​
elementStyles ​
staticelementStyles:CSSResultOrNative[]
Memoized list of all element styles. Created lazily on user subclasses when finalizing the class.
Nocollapse ​
Inherited from ​
LitElement.elementStyles
styles ​
staticstyles:CSSResult
Array of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.
Note on Content Security Policy:
Element styles are implemented with <style> tags when the browser doesn't support adopted StyleSheets. To use such <style> tags with the style-src CSP directive, the style-src value must either include 'unsafe-inline' or nonce-<base64-value> with <base64-value> replaced be a server-generated nonce.
To provide a nonce to use on generated <style> elements, set window.litNonce to a server-generated nonce in your page's HTML, before loading application code:
<script>
// Generated and unique per request:
window.litNonce = 'a1b2c3d4';
</script>Nocollapse ​
Overrides ​
LitElement.styles
finalizeStyles() ​
protectedstaticfinalizeStyles(styles?):CSSResultOrNative[]
Takes the styles the user supplied via the static styles property and returns the array of styles to apply to the element. Override this method to integrate into a style management system.
Styles are deduplicated preserving the last instance in the list. This is a performance optimization to avoid duplicated styles that can occur especially when composing via subclassing. The last item is kept to try to preserve the cascade order with the assumption that it's most important that last added styles override previous styles.
Parameters ​
| Parameter | Type |
|---|---|
styles? | CSSResultGroup |
Returns ​
CSSResultOrNative[]
Nocollapse ​
Inherited from ​
LitElement.finalizeStyles
updates ​
hasUpdated ​
hasUpdated:
boolean
Is set to true after the first update. The element code cannot assume that renderRoot exists before the element hasUpdated.
Inherited from ​
LitElement.hasUpdated
isUpdatePending ​
isUpdatePending:
boolean
True if there is a pending update as a result of calling requestUpdate(). Should only be read.
Inherited from ​
LitElement.isUpdatePending
updateComplete ​
Get Signature ​
get updateComplete():
Promise<boolean>
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 ​
LitElement.updateComplete
enableUpdating() ​
protectedenableUpdating(_requestedUpdate):void
Note, this method should be considered final and not overridden. It is overridden on the element instance with a function that triggers the first update.
Parameters ​
| Parameter | Type |
|---|---|
_requestedUpdate | boolean |
Returns ​
void
Inherited from ​
LitElement.enableUpdating
firstUpdated() ​
firstUpdated():
Promise<void>
Invoked when the element is first updated. Implement to perform one time work on the element after update.
firstUpdated() {
this.renderRoot.getElementById('my-text-area').focus();
}Setting properties inside this method will trigger the element to update again after this update cycle completes.
Returns ​
Promise<void>
Overrides ​
LitElement.firstUpdated
getUpdateComplete() ​
protectedgetUpdateComplete():Promise<boolean>
Override point for the updateComplete promise.
It is not safe to override the updateComplete getter directly due to a limitation in TypeScript which means it is not possible to call a superclass getter (e.g. super.updateComplete.then(...)) when the target language is ES5 (https://github.com/microsoft/TypeScript/issues/338). This method should be overridden instead. For example:
class MyElement extends LitElement {
override async getUpdateComplete() {
const result = await super.getUpdateComplete();
await this._myChild.updateComplete;
return result;
}
}Returns ​
Promise<boolean>
A promise of a boolean that resolves to true if the update completed without triggering another update.
Inherited from ​
LitElement.getUpdateComplete
performUpdate() ​
protectedperformUpdate():void
Performs an element update. Note, if an exception is thrown during the update, firstUpdated and updated will not be called.
Call performUpdate() to immediately process a pending update. This should generally not be needed, but it can be done in rare cases when you need to update synchronously.
Returns ​
void
Inherited from ​
LitElement.performUpdate
requestUpdate() ​
requestUpdate(
name?,oldValue?,options?):void
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 ​
| Parameter | Type | Description |
|---|---|---|
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 |
Returns ​
void
Inherited from ​
LitElement.requestUpdate
scheduleUpdate() ​
protectedscheduleUpdate():void|Promise<unknown>
Schedules an element update. You can override this method to change the timing of updates by returning a Promise. The update will await the returned Promise, and you should resolve the Promise to allow the update to proceed. If this method is overridden, super.scheduleUpdate() must be called.
For instance, to schedule updates to occur just before the next frame:
override protected async scheduleUpdate(): Promise<unknown> {
await new Promise((resolve) => requestAnimationFrame(() => resolve()));
super.scheduleUpdate();
}Returns ​
void | Promise<unknown>
Inherited from ​
LitElement.scheduleUpdate
shouldUpdate() ​
protectedshouldUpdate(_changedProperties):boolean
Controls whether or not update() should be called when the element requests an update. By default, this method always returns true, but this can be customized to control when to update.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
_changedProperties | PropertyValueMap<any> | Map<PropertyKey, unknown> | Map of changed properties with old values |
Returns ​
boolean
Inherited from ​
LitElement.shouldUpdate
update() ​
protectedupdate(changedProperties):void
Updates the element. This method reflects property values to attributes and calls render to render DOM via lit-html. Setting properties inside this method will not trigger another update.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
changedProperties | PropertyValueMap<any> | Map<PropertyKey, unknown> | Map of changed properties with old values |
Returns ​
void
Inherited from ​
LitElement.update
updated() ​
updated(
changedProperties):Promise<void>
Invoked whenever the element is updated. Implement to perform post-updating tasks via DOM APIs, for example, focusing an element.
Setting properties inside this method will trigger the element to update again after this update cycle completes.
Parameters ​
| Parameter | Type |
|---|---|
changedProperties | PropertyValueMap<SdkMapElement> |
Returns ​
Promise<void>
Overrides ​
LitElement.updated
willUpdate() ​
protectedwillUpdate(_changedProperties):void
Invoked before update() to compute values needed during the update.
Implement willUpdate to compute property values that depend on other properties and are used in the rest of the update process.
willUpdate(changedProperties) {
// only need to check changed properties for an expensive computation.
if (changedProperties.has('firstName') || changedProperties.has('lastName')) {
this.sha = computeSHA(`${this.firstName} ${this.lastName}`);
}
}
render() {
return html`SHA: ${this.sha}`;
}Parameters ​
| Parameter | Type |
|---|---|
_changedProperties | PropertyValueMap<any> | Map<PropertyKey, unknown> |
Returns ​
void
Inherited from ​
LitElement.willUpdate