View Source AuthoringElement

oli / Exports / AuthoringElement

Class: AuthoringElement<T>

An abstract authoring web component, designed to delegate rendering via the render method. This authoring web component will re-render when the 'model' attribute of the the web component changes. It also traps onEdit callbacks from the concrete implementation and translates these calls into dispatches of the 'modelUpdated' CustomEvent. It is this CustomEvent that is handled by Torus to process updates from the authoring web component.

While the delegated implementation is a React component in the case of natively implemented activities, this does not need to be the case. This AuthoringElement implementation is tech-stack agnostic. One can use it to implement the authoring component of a Torus activity in Vanilla JS, React, Vue, Angular, etc.

// A typical React delegation
export class MultipleChoiceAuthoring extends AuthoringElement<MCSchema> {

  render(mountPoint: HTMLDivElement, props: AuthoringElementProps<MCSchema>) {
    ReactDOM.render(
      <Provider store={store}>
        <AuthoringElementProvider {...props}>
          <MultipleChoice />
        </AuthoringElementProvider>
      </Provider>,
      mountPoint,
    );
  }
}

Type parameters

NameType
Textends ActivityModelSchema

Hierarchy

  • HTMLElement

    AuthoringElement

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AuthoringElement<T>()

Type parameters

NameType
Textends ActivityModelSchema

Overrides

HTMLElement.constructor

Defined in

src/components/activities/AuthoringElement.ts:59

Properties

ATTRIBUTE_NODE

Readonly ATTRIBUTE_NODE: number

Inherited from

HTMLElement.ATTRIBUTE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9822


CDATA_SECTION_NODE

Readonly CDATA_SECTION_NODE: number

node is a CDATASection node.

Inherited from

HTMLElement.CDATA_SECTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9824


COMMENT_NODE

Readonly COMMENT_NODE: number

node is a Comment node.

Inherited from

HTMLElement.COMMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9826


DOCUMENT_FRAGMENT_NODE

Readonly DOCUMENT_FRAGMENT_NODE: number

node is a DocumentFragment node.

Inherited from

HTMLElement.DOCUMENT_FRAGMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9828


DOCUMENT_NODE

Readonly DOCUMENT_NODE: number

node is a document.

Inherited from

HTMLElement.DOCUMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9830


DOCUMENT_POSITION_CONTAINED_BY

Readonly DOCUMENT_POSITION_CONTAINED_BY: number

Set when other is a descendant of node.

Inherited from

HTMLElement.DOCUMENT_POSITION_CONTAINED_BY

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9832


DOCUMENT_POSITION_CONTAINS

Readonly DOCUMENT_POSITION_CONTAINS: number

Set when other is an ancestor of node.

Inherited from

HTMLElement.DOCUMENT_POSITION_CONTAINS

Defined in

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


DOCUMENT_POSITION_DISCONNECTED

Readonly DOCUMENT_POSITION_DISCONNECTED: number

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

Inherited from

HTMLElement.DOCUMENT_POSITION_DISCONNECTED

Defined in

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


DOCUMENT_POSITION_FOLLOWING

Readonly DOCUMENT_POSITION_FOLLOWING: number

Set when other is following node.

Inherited from

HTMLElement.DOCUMENT_POSITION_FOLLOWING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9838


DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number

Inherited from

HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9839


DOCUMENT_POSITION_PRECEDING

Readonly DOCUMENT_POSITION_PRECEDING: number

Set when other is preceding node.

Inherited from

HTMLElement.DOCUMENT_POSITION_PRECEDING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9841


DOCUMENT_TYPE_NODE

Readonly DOCUMENT_TYPE_NODE: number

node is a doctype.

Inherited from

HTMLElement.DOCUMENT_TYPE_NODE

Defined in

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


ELEMENT_NODE

Readonly ELEMENT_NODE: number

node is an element.

Inherited from

HTMLElement.ELEMENT_NODE

Defined in

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


ENTITY_NODE

Readonly ENTITY_NODE: number

Inherited from

HTMLElement.ENTITY_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9846


ENTITY_REFERENCE_NODE

Readonly ENTITY_REFERENCE_NODE: number

Inherited from

HTMLElement.ENTITY_REFERENCE_NODE

Defined in

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


NOTATION_NODE

Readonly NOTATION_NODE: number

Inherited from

HTMLElement.NOTATION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9848


PROCESSING_INSTRUCTION_NODE

Readonly PROCESSING_INSTRUCTION_NODE: number

node is a ProcessingInstruction node.

Inherited from

HTMLElement.PROCESSING_INSTRUCTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9850


TEXT_NODE

Readonly TEXT_NODE: number

node is a Text node.

Inherited from

HTMLElement.TEXT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9852


_notify

Protected _notify: EventEmitter

Defined in

src/components/activities/AuthoringElement.ts:57


accessKey

accessKey: string

Inherited from

HTMLElement.accessKey

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6223


accessKeyLabel

Readonly accessKeyLabel: string

Inherited from

HTMLElement.accessKeyLabel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6224


ariaAtomic

ariaAtomic: null \| string

Inherited from

HTMLElement.ariaAtomic

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1857


ariaAutoComplete

ariaAutoComplete: null \| string

Inherited from

HTMLElement.ariaAutoComplete

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1858


ariaBusy

ariaBusy: null \| string

Inherited from

HTMLElement.ariaBusy

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1859


ariaChecked

ariaChecked: null \| string

Inherited from

HTMLElement.ariaChecked

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1860


ariaColCount

ariaColCount: null \| string

Inherited from

HTMLElement.ariaColCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1861


ariaColIndex

ariaColIndex: null \| string

Inherited from

HTMLElement.ariaColIndex

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1862


ariaColSpan

ariaColSpan: null \| string

Inherited from

HTMLElement.ariaColSpan

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1863


ariaCurrent

ariaCurrent: null \| string

Inherited from

HTMLElement.ariaCurrent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1864


ariaDisabled

ariaDisabled: null \| string

Inherited from

HTMLElement.ariaDisabled

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1865


ariaExpanded

ariaExpanded: null \| string

Inherited from

HTMLElement.ariaExpanded

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1866


ariaHasPopup

ariaHasPopup: null \| string

Inherited from

HTMLElement.ariaHasPopup

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1867


ariaHidden

ariaHidden: null \| string

Inherited from

HTMLElement.ariaHidden

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1868


ariaKeyShortcuts

ariaKeyShortcuts: null \| string

Inherited from

HTMLElement.ariaKeyShortcuts

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1869


ariaLabel

ariaLabel: null \| string

Inherited from

HTMLElement.ariaLabel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1870


ariaLevel

ariaLevel: null \| string

Inherited from

HTMLElement.ariaLevel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1871


ariaLive

ariaLive: null \| string

Inherited from

HTMLElement.ariaLive

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1872


ariaModal

ariaModal: null \| string

Inherited from

HTMLElement.ariaModal

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1873


ariaMultiLine

ariaMultiLine: null \| string

Inherited from

HTMLElement.ariaMultiLine

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1874


ariaMultiSelectable

ariaMultiSelectable: null \| string

Inherited from

HTMLElement.ariaMultiSelectable

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1875


ariaOrientation

ariaOrientation: null \| string

Inherited from

HTMLElement.ariaOrientation

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1876


ariaPlaceholder

ariaPlaceholder: null \| string

Inherited from

HTMLElement.ariaPlaceholder

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1877


ariaPosInSet

ariaPosInSet: null \| string

Inherited from

HTMLElement.ariaPosInSet

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1878


ariaPressed

ariaPressed: null \| string

Inherited from

HTMLElement.ariaPressed

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1879


ariaReadOnly

ariaReadOnly: null \| string

Inherited from

HTMLElement.ariaReadOnly

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1880


ariaRequired

ariaRequired: null \| string

Inherited from

HTMLElement.ariaRequired

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1881


ariaRoleDescription

ariaRoleDescription: null \| string

Inherited from

HTMLElement.ariaRoleDescription

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1882


ariaRowCount

ariaRowCount: null \| string

Inherited from

HTMLElement.ariaRowCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1883


ariaRowIndex

ariaRowIndex: null \| string

Inherited from

HTMLElement.ariaRowIndex

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1884


ariaRowSpan

ariaRowSpan: null \| string

Inherited from

HTMLElement.ariaRowSpan

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1885


ariaSelected

ariaSelected: null \| string

Inherited from

HTMLElement.ariaSelected

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1886


ariaSetSize

ariaSetSize: null \| string

Inherited from

HTMLElement.ariaSetSize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1887


ariaSort

ariaSort: null \| string

Inherited from

HTMLElement.ariaSort

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1888


ariaValueMax

ariaValueMax: null \| string

Inherited from

HTMLElement.ariaValueMax

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1889


ariaValueMin

ariaValueMin: null \| string

Inherited from

HTMLElement.ariaValueMin

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1890


ariaValueNow

ariaValueNow: null \| string

Inherited from

HTMLElement.ariaValueNow

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1891


ariaValueText

ariaValueText: null \| string

Inherited from

HTMLElement.ariaValueText

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1892


assignedSlot

Readonly assignedSlot: null \| HTMLSlotElement

Inherited from

HTMLElement.assignedSlot

Defined in

node_modules/typescript/lib/lib.dom.d.ts:13242


attributes

Readonly attributes: NamedNodeMap

Inherited from

HTMLElement.attributes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4768


autocapitalize

autocapitalize: string

Inherited from

HTMLElement.autocapitalize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6225


autofocus

autofocus: boolean

Inherited from

HTMLElement.autofocus

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7427


baseURI

Readonly baseURI: string

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

Inherited from

HTMLElement.baseURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9775


childElementCount

Readonly childElementCount: number

Inherited from

HTMLElement.childElementCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10140


childNodes

Readonly childNodes: NodeListOf<ChildNode>

Returns the children.

Inherited from

HTMLElement.childNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9777


children

Readonly children: HTMLCollection

Returns the child elements.

Inherited from

HTMLElement.children

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10142


classList

Readonly classList: DOMTokenList

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

Inherited from

HTMLElement.classList

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4770


className

className: string

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

Inherited from

HTMLElement.className

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4772


clientHeight

Readonly clientHeight: number

Inherited from

HTMLElement.clientHeight

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4773


clientLeft

Readonly clientLeft: number

Inherited from

HTMLElement.clientLeft

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4774


clientTop

Readonly clientTop: number

Inherited from

HTMLElement.clientTop

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4775


clientWidth

Readonly clientWidth: number

Inherited from

HTMLElement.clientWidth

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4776


connected

connected: boolean

Defined in

src/components/activities/AuthoringElement.ts:55


contentEditable

contentEditable: string

Inherited from

HTMLElement.contentEditable

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4887


dataset

Readonly dataset: DOMStringMap

Inherited from

HTMLElement.dataset

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7428


dir

dir: string

Inherited from

HTMLElement.dir

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6226


draggable

draggable: boolean

Inherited from

HTMLElement.draggable

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6227


enterKeyHint

enterKeyHint: string

Inherited from

HTMLElement.enterKeyHint

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4888


firstChild

Readonly firstChild: null \| ChildNode

Returns the first child.

Inherited from

HTMLElement.firstChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9779


firstElementChild

Readonly firstElementChild: null \| Element

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

Inherited from

HTMLElement.firstElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10144


hidden

hidden: boolean

Inherited from

HTMLElement.hidden

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6228


id

id: string

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

Inherited from

HTMLElement.id

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4778


innerHTML

innerHTML: string

Inherited from

HTMLElement.innerHTML

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8777


innerText

innerText: string

Inherited from

HTMLElement.innerText

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6229


inputMode

inputMode: string

Inherited from

HTMLElement.inputMode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4889


isConnected

Readonly isConnected: boolean

Returns true if node is connected and false otherwise.

Inherited from

HTMLElement.isConnected

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9781


isContentEditable

Readonly isContentEditable: boolean

Inherited from

HTMLElement.isContentEditable

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4890


lang

lang: string

Inherited from

HTMLElement.lang

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6230


lastChild

Readonly lastChild: null \| ChildNode

Returns the last child.

Inherited from

HTMLElement.lastChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9783


lastElementChild

Readonly lastElementChild: null \| Element

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

Inherited from

HTMLElement.lastElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10146


localName

Readonly localName: string

Returns the local name.

Inherited from

HTMLElement.localName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4780


mountPoint

mountPoint: HTMLDivElement

Defined in

src/components/activities/AuthoringElement.ts:54


namespaceURI

Readonly namespaceURI: null \| string

Returns the namespace.

Inherited from

HTMLElement.namespaceURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4782


nextElementSibling

Readonly nextElementSibling: null \| Element

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

Inherited from

HTMLElement.nextElementSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9942


nextSibling

Readonly nextSibling: null \| ChildNode

Returns the next sibling.

Inherited from

HTMLElement.nextSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9785


nodeName

Readonly nodeName: string

Returns a string appropriate for the type of node.

Inherited from

HTMLElement.nodeName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9787


nodeType

Readonly nodeType: number

Returns the type of node.

Inherited from

HTMLElement.nodeType

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9789


nodeValue

nodeValue: null \| string

Inherited from

HTMLElement.nodeValue

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9790


nonce

Optional nonce: string

Inherited from

HTMLElement.nonce

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7429


offsetHeight

Readonly offsetHeight: number

Inherited from

HTMLElement.offsetHeight

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6231


offsetLeft

Readonly offsetLeft: number

Inherited from

HTMLElement.offsetLeft

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6232


offsetParent

Readonly offsetParent: null \| Element

Inherited from

HTMLElement.offsetParent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6233


offsetTop

Readonly offsetTop: number

Inherited from

HTMLElement.offsetTop

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6234


offsetWidth

Readonly offsetWidth: number

Inherited from

HTMLElement.offsetWidth

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6235


onabort

onabort: null \| (this: GlobalEventHandlers, ev: UIEvent) => any

Fires when the user aborts the download.

param The event.

Inherited from

HTMLElement.onabort

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5542


onanimationcancel

onanimationcancel: null \| (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited from

HTMLElement.onanimationcancel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5543


onanimationend

onanimationend: null \| (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited from

HTMLElement.onanimationend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5544


onanimationiteration

onanimationiteration: null \| (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited from

HTMLElement.onanimationiteration

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5545


onanimationstart

onanimationstart: null \| (this: GlobalEventHandlers, ev: AnimationEvent) => any

Inherited from

HTMLElement.onanimationstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5546


onauxclick

onauxclick: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited from

HTMLElement.onauxclick

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5547


onblur

onblur: null \| (this: GlobalEventHandlers, ev: FocusEvent) => any

Fires when the object loses the input focus.

param The focus event.

Inherited from

HTMLElement.onblur

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5552


oncanplay

oncanplay: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.oncanplay

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5557


oncanplaythrough

oncanplaythrough: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.oncanplaythrough

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5558


onchange

onchange: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onchange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5563


onclick

onclick: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

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

param The mouse event.

Inherited from

HTMLElement.onclick

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5568


onclose

onclose: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.onclose

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5569


oncontextmenu

oncontextmenu: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

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

param The mouse event.

Inherited from

HTMLElement.oncontextmenu

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5574


oncopy

oncopy: null \| (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Inherited from

HTMLElement.oncopy

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4624


oncuechange

oncuechange: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.oncuechange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5575


oncut

oncut: null \| (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Inherited from

HTMLElement.oncut

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4625


ondblclick

ondblclick: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

Fires when the user double-clicks the object.

param The mouse event.

Inherited from

HTMLElement.ondblclick

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5580


ondrag

ondrag: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

Fires on the source object continuously during a drag operation.

param The event.

Inherited from

HTMLElement.ondrag

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5585


ondragend

ondragend: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

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

param The event.

Inherited from

HTMLElement.ondragend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5590


ondragenter

ondragenter: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

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

param The drag event.

Inherited from

HTMLElement.ondragenter

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5595


ondragleave

ondragleave: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

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

HTMLElement.ondragleave

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5600


ondragover

ondragover: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

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

param The event.

Inherited from

HTMLElement.ondragover

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5605


ondragstart

ondragstart: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

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

param The event.

Inherited from

HTMLElement.ondragstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5610


ondrop

ondrop: null \| (this: GlobalEventHandlers, ev: DragEvent) => any

Inherited from

HTMLElement.ondrop

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5611


ondurationchange

ondurationchange: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the duration attribute is updated.

param The event.

Inherited from

HTMLElement.ondurationchange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5616


onemptied

onemptied: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onemptied

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5621


onended

onended: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the end of playback is reached.

param The event

Inherited from

HTMLElement.onended

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5626


onerror

onerror: OnErrorEventHandler

Fires when an error occurs during object loading.

param The event.

Inherited from

HTMLElement.onerror

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5631


onfocus

onfocus: null \| (this: GlobalEventHandlers, ev: FocusEvent) => any

Fires when the object receives focus.

param The event.

Inherited from

HTMLElement.onfocus

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5636


onformdata

onformdata: null \| (this: GlobalEventHandlers, ev: FormDataEvent) => any

Inherited from

HTMLElement.onformdata

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5637


onfullscreenchange

onfullscreenchange: null \| (this: Element, ev: Event) => any

Inherited from

HTMLElement.onfullscreenchange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4783


onfullscreenerror

onfullscreenerror: null \| (this: Element, ev: Event) => any

Inherited from

HTMLElement.onfullscreenerror

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4784


ongotpointercapture

ongotpointercapture: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.ongotpointercapture

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5638


oninput

oninput: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.oninput

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5639


oninvalid

oninvalid: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.oninvalid

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5640


onkeydown

onkeydown: null \| (this: GlobalEventHandlers, ev: KeyboardEvent) => any

Fires when the user presses a key.

param The keyboard event

Inherited from

HTMLElement.onkeydown

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5645


onkeypress

onkeypress: null \| (this: GlobalEventHandlers, ev: KeyboardEvent) => any

Fires when the user presses an alphanumeric key.

param The event.

deprecated

Inherited from

HTMLElement.onkeypress

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5651


onkeyup

onkeyup: null \| (this: GlobalEventHandlers, ev: KeyboardEvent) => any

Fires when the user releases a key.

param The keyboard event

Inherited from

HTMLElement.onkeyup

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5656


onload

onload: null \| (this: GlobalEventHandlers, ev: Event) => any

Fires immediately after the browser loads the object.

param The event.

Inherited from

HTMLElement.onload

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5661


onloadeddata

onloadeddata: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onloadeddata

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5666


onloadedmetadata

onloadedmetadata: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onloadedmetadata

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5671


onloadstart

onloadstart: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when Internet Explorer begins looking for media data.

param The event.

Inherited from

HTMLElement.onloadstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5676


onlostpointercapture

onlostpointercapture: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onlostpointercapture

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5677


onmousedown

onmousedown: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

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

param The mouse event.

Inherited from

HTMLElement.onmousedown

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5682


onmouseenter

onmouseenter: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited from

HTMLElement.onmouseenter

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5683


onmouseleave

onmouseleave: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

Inherited from

HTMLElement.onmouseleave

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5684


onmousemove

onmousemove: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

Fires when the user moves the mouse over the object.

param The mouse event.

Inherited from

HTMLElement.onmousemove

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5689


onmouseout

onmouseout: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

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

param The mouse event.

Inherited from

HTMLElement.onmouseout

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5694


onmouseover

onmouseover: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

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

param The mouse event.

Inherited from

HTMLElement.onmouseover

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5699


onmouseup

onmouseup: null \| (this: GlobalEventHandlers, ev: MouseEvent) => any

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

param The mouse event.

Inherited from

HTMLElement.onmouseup

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5704


onpaste

onpaste: null \| (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

Inherited from

HTMLElement.onpaste

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4626


onpause

onpause: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when playback is paused.

param The event.

Inherited from

HTMLElement.onpause

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5709


onplay

onplay: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the play method is requested.

param The event.

Inherited from

HTMLElement.onplay

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5714


onplaying

onplaying: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the audio or video has started playing.

param The event.

Inherited from

HTMLElement.onplaying

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5719


onpointercancel

onpointercancel: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointercancel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5720


onpointerdown

onpointerdown: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointerdown

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5721


onpointerenter

onpointerenter: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointerenter

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5722


onpointerleave

onpointerleave: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointerleave

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5723


onpointermove

onpointermove: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointermove

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5724


onpointerout

onpointerout: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointerout

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5725


onpointerover

onpointerover: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointerover

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5726


onpointerup

onpointerup: null \| (this: GlobalEventHandlers, ev: PointerEvent) => any

Inherited from

HTMLElement.onpointerup

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5727


onprogress

onprogress: null \| (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any

Occurs to indicate progress while downloading media data.

param The event.

Inherited from

HTMLElement.onprogress

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5732


onratechange

onratechange: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the playback rate is increased or decreased.

param The event.

Inherited from

HTMLElement.onratechange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5737


onreset

onreset: null \| (this: GlobalEventHandlers, ev: Event) => any

Fires when the user resets a form.

param The event.

Inherited from

HTMLElement.onreset

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5742


onresize

onresize: null \| (this: GlobalEventHandlers, ev: UIEvent) => any

Inherited from

HTMLElement.onresize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5743


onscroll

onscroll: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onscroll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5748


onsecuritypolicyviolation

onsecuritypolicyviolation: null \| (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any

Inherited from

HTMLElement.onsecuritypolicyviolation

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5749


onseeked

onseeked: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the seek operation ends.

param The event.

Inherited from

HTMLElement.onseeked

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5754


onseeking

onseeking: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the current playback position is moved.

param The event.

Inherited from

HTMLElement.onseeking

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5759


onselect

onselect: null \| (this: GlobalEventHandlers, ev: Event) => any

Fires when the current selection changes.

param The event.

Inherited from

HTMLElement.onselect

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5764


onselectionchange

onselectionchange: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.onselectionchange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5765


onselectstart

onselectstart: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.onselectstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5766


onslotchange

onslotchange: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.onslotchange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5767


onstalled

onstalled: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs when the download has stopped.

param The event.

Inherited from

HTMLElement.onstalled

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5772


onsubmit

onsubmit: null \| (this: GlobalEventHandlers, ev: SubmitEvent) => any

Inherited from

HTMLElement.onsubmit

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5773


onsuspend

onsuspend: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs if the load operation has been intentionally halted.

param The event.

Inherited from

HTMLElement.onsuspend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5778


ontimeupdate

ontimeupdate: null \| (this: GlobalEventHandlers, ev: Event) => any

Occurs to indicate the current playback position.

param The event.

Inherited from

HTMLElement.ontimeupdate

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5783


ontoggle

ontoggle: null \| (this: GlobalEventHandlers, ev: Event) => any

Inherited from

HTMLElement.ontoggle

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5784


ontouchcancel

Optional ontouchcancel: null \| (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited from

HTMLElement.ontouchcancel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5785


ontouchend

Optional ontouchend: null \| (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited from

HTMLElement.ontouchend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5786


ontouchmove

Optional ontouchmove: null \| (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited from

HTMLElement.ontouchmove

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5787


ontouchstart

Optional ontouchstart: null \| (this: GlobalEventHandlers, ev: TouchEvent) => any

Inherited from

HTMLElement.ontouchstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5788


ontransitioncancel

ontransitioncancel: null \| (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited from

HTMLElement.ontransitioncancel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5789


ontransitionend

ontransitionend: null \| (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited from

HTMLElement.ontransitionend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5790


ontransitionrun

ontransitionrun: null \| (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited from

HTMLElement.ontransitionrun

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5791


ontransitionstart

ontransitionstart: null \| (this: GlobalEventHandlers, ev: TransitionEvent) => any

Inherited from

HTMLElement.ontransitionstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5792


onvolumechange

onvolumechange: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onvolumechange

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5797


onwaiting

onwaiting: null \| (this: GlobalEventHandlers, ev: Event) => any

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

param The event.

Inherited from

HTMLElement.onwaiting

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5802


onwebkitanimationend

onwebkitanimationend: null \| (this: GlobalEventHandlers, ev: Event) => any

deprecated This is a legacy alias of onanimationend.

Inherited from

HTMLElement.onwebkitanimationend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5804


onwebkitanimationiteration

onwebkitanimationiteration: null \| (this: GlobalEventHandlers, ev: Event) => any

deprecated This is a legacy alias of onanimationiteration.

Inherited from

HTMLElement.onwebkitanimationiteration

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5806


onwebkitanimationstart

onwebkitanimationstart: null \| (this: GlobalEventHandlers, ev: Event) => any

deprecated This is a legacy alias of onanimationstart.

Inherited from

HTMLElement.onwebkitanimationstart

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5808


onwebkittransitionend

onwebkittransitionend: null \| (this: GlobalEventHandlers, ev: Event) => any

deprecated This is a legacy alias of ontransitionend.

Inherited from

HTMLElement.onwebkittransitionend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5810


onwheel

onwheel: null \| (this: GlobalEventHandlers, ev: WheelEvent) => any

Inherited from

HTMLElement.onwheel

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5811


outerHTML

outerHTML: string

Inherited from

HTMLElement.outerHTML

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4785


outerText

outerText: string

Inherited from

HTMLElement.outerText

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6236


ownerDocument

Readonly ownerDocument: Document

Inherited from

HTMLElement.ownerDocument

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4786


parentElement

Readonly parentElement: null \| HTMLElement

Returns the parent element.

Inherited from

HTMLElement.parentElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9794


parentNode

Readonly parentNode: null \| ParentNode

Returns the parent.

Inherited from

HTMLElement.parentNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9796


part

Readonly part: DOMTokenList

Inherited from

HTMLElement.part

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4787


prefix

Readonly prefix: null \| string

Returns the namespace prefix.

Inherited from

HTMLElement.prefix

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4789


previousElementSibling

Readonly previousElementSibling: null \| Element

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

Inherited from

HTMLElement.previousElementSibling

Defined in

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


previousSibling

Readonly previousSibling: null \| ChildNode

Returns the previous sibling.

Inherited from

HTMLElement.previousSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9798


scrollHeight

Readonly scrollHeight: number

Inherited from

HTMLElement.scrollHeight

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4790


scrollLeft

scrollLeft: number

Inherited from

HTMLElement.scrollLeft

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4791


scrollTop

scrollTop: number

Inherited from

HTMLElement.scrollTop

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4792


scrollWidth

Readonly scrollWidth: number

Inherited from

HTMLElement.scrollWidth

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4793


shadowRoot

Readonly shadowRoot: null \| ShadowRoot

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

Inherited from

HTMLElement.shadowRoot

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4795


slot

slot: string

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

Inherited from

HTMLElement.slot

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4797


spellcheck

spellcheck: boolean

Inherited from

HTMLElement.spellcheck

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6237


style

Readonly style: CSSStyleDeclaration

Inherited from

HTMLElement.style

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4883


tabIndex

tabIndex: number

Inherited from

HTMLElement.tabIndex

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7430


tagName

Readonly tagName: string

Returns the HTML-uppercased qualified name.

Inherited from

HTMLElement.tagName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4799


textContent

textContent: null \| string

Inherited from

HTMLElement.textContent

Defined in

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


title

title: string

Inherited from

HTMLElement.title

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6238


translate

translate: boolean

Inherited from

HTMLElement.translate

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6239


observedAttributes

Static observedAttributes: string[]

Defined in

src/components/activities/AuthoringElement.ts:182

Methods

addEventListener

addEventListener<K>(type, listener, options?): void

Type parameters

NameType
Kextends keyof HTMLElementEventMap

Parameters

NameType
typeK
listener(this: HTMLElement, ev: HTMLElementEventMap[K]) => any
options?boolean | AddEventListenerOptions

Returns

void

Inherited from

HTMLElement.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6242

addEventListener(type, listener, options?): void

Parameters

NameType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | AddEventListenerOptions

Returns

void

Inherited from

HTMLElement.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6243


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

NameType
...nodes(string | Node)[]

Returns

void

Inherited from

HTMLElement.after

Defined in

node_modules/typescript/lib/lib.dom.d.ts:3497


animate

animate(keyframes, options?): Animation

Parameters

NameType
keyframesnull | Keyframe[] | PropertyIndexedKeyframes
options?number | KeyframeAnimationOptions

Returns

Animation

Inherited from

HTMLElement.animate

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1978


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

NameType
...nodes(string | Node)[]

Returns

void

Inherited from

HTMLElement.append

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10152


appendChild

appendChild<T>(node): T

Type parameters

NameType
Textends Node

Parameters

NameType
nodeT

Returns

T

Inherited from

HTMLElement.appendChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9800


attachInternals

attachInternals(): ElementInternals

Returns

ElementInternals

Inherited from

HTMLElement.attachInternals

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6240


attachShadow

attachShadow(init): ShadowRoot

Creates a shadow root for element and returns it.

Parameters

NameType
initShadowRootInit

Returns

ShadowRoot

Inherited from

HTMLElement.attachShadow

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4801


attributeChangedCallback

attributeChangedCallback(_name, _oldValue, _newValue): void

Parameters

NameType
_nameany
_oldValueany
_newValueany

Returns

void

Defined in

src/components/activities/AuthoringElement.ts:175


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

NameType
...nodes(string | Node)[]

Returns

void

Inherited from

HTMLElement.before

Defined in

node_modules/typescript/lib/lib.dom.d.ts:3503


blur

blur(): void

Returns

void

Inherited from

HTMLElement.blur

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7431


click

click(): void

Returns

void

Inherited from

HTMLElement.click

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6241


cloneNode

cloneNode(deep?): Node

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

Parameters

NameType
deep?boolean

Returns

Node

Inherited from

HTMLElement.cloneNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9802


closest

closest<K>(selector): null \| HTMLElementTagNameMap[K]

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

Type parameters

NameType
Kextends keyof HTMLElementTagNameMap

Parameters

NameType
selectorK

Returns

null \| HTMLElementTagNameMap[K]

Inherited from

HTMLElement.closest

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4803

closest<K>(selector): null \| SVGElementTagNameMap[K]

Type parameters

NameType
Kextends keyof SVGElementTagNameMap

Parameters

NameType
selectorK

Returns

null \| SVGElementTagNameMap[K]

Inherited from

HTMLElement.closest

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4804

closest<E>(selectors): null \| E

Type parameters

NameType
Eextends Element = Element

Parameters

NameType
selectorsstring

Returns

null \| E

Inherited from

HTMLElement.closest

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4805


compareDocumentPosition

compareDocumentPosition(other): number

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

Parameters

NameType
otherNode

Returns

number

Inherited from

HTMLElement.compareDocumentPosition

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9804


connectedCallback

connectedCallback(): void

Returns

void

Defined in

src/components/activities/AuthoringElement.ts:169


contains

contains(other): boolean

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

Parameters

NameType
othernull | Node

Returns

boolean

Inherited from

HTMLElement.contains

Defined in

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


details

details(continuation, payload?): Object

Parameters

NameType
continuation(result: any, error: any) => void
payload?any

Returns

Object

NameType
bubblesboolean
composedboolean
detail{ continuation: (result: any, error: any) => void ; payload: any ; props: AuthoringElementProps<T> & SectionAuthoringProps }
detail.continuation(result: any, error: any) => void
detail.payloadany
detail.propsAuthoringElementProps<T> & SectionAuthoringProps

Defined in

src/components/activities/AuthoringElement.ts:129


dispatch

dispatch(name, payload?): Promise<any>

Parameters

NameType
namestring
payload?any

Returns

Promise<any>

Defined in

src/components/activities/AuthoringElement.ts:141


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

NameType
eventEvent

Returns

boolean

Inherited from

HTMLElement.dispatchEvent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:5033


focus

focus(options?): void

Parameters

NameType
options?FocusOptions

Returns

void

Inherited from

HTMLElement.focus

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7432


getAnimations

getAnimations(options?): Animation[]

Parameters

NameType
options?GetAnimationsOptions

Returns

Animation[]

Inherited from

HTMLElement.getAnimations

Defined in

node_modules/typescript/lib/lib.dom.d.ts:1979


getAttribute

getAttribute(qualifiedName): null \| string

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

Parameters

NameType
qualifiedNamestring

Returns

null \| string

Inherited from

HTMLElement.getAttribute

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4807


getAttributeNS

getAttributeNS(namespace, localName): null \| string

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

Parameters

NameType
namespacenull | string
localNamestring

Returns

null \| string

Inherited from

HTMLElement.getAttributeNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4809


getAttributeNames

getAttributeNames(): string[]

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

Returns

string[]

Inherited from

HTMLElement.getAttributeNames

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4811


getAttributeNode

getAttributeNode(qualifiedName): null \| Attr

Parameters

NameType
qualifiedNamestring

Returns

null \| Attr

Inherited from

HTMLElement.getAttributeNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4812


getAttributeNodeNS

getAttributeNodeNS(namespace, localName): null \| Attr

Parameters

NameType
namespacenull | string
localNamestring

Returns

null \| Attr

Inherited from

HTMLElement.getAttributeNodeNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4813


getBoundingClientRect

getBoundingClientRect(): DOMRect

Returns

DOMRect

Inherited from

HTMLElement.getBoundingClientRect

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4814


getClientRects

getClientRects(): DOMRectList

Returns

DOMRectList

Inherited from

HTMLElement.getClientRects

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4815


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

NameType
classNamesstring

Returns

HTMLCollectionOf<Element>

Inherited from

HTMLElement.getElementsByClassName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4817


getElementsByTagName

getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>

Type parameters

NameType
Kextends keyof HTMLElementTagNameMap

Parameters

NameType
qualifiedNameK

Returns

HTMLCollectionOf<HTMLElementTagNameMap[K]>

Inherited from

HTMLElement.getElementsByTagName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4818

getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>

Type parameters

NameType
Kextends keyof SVGElementTagNameMap

Parameters

NameType
qualifiedNameK

Returns

HTMLCollectionOf<SVGElementTagNameMap[K]>

Inherited from

HTMLElement.getElementsByTagName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4819

getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>

Parameters

NameType
qualifiedNamestring

Returns

HTMLCollectionOf<Element>

Inherited from

HTMLElement.getElementsByTagName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4820


getElementsByTagNameNS

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>

Parameters

NameType
namespaceURI"http://www.w3.org/1999/xhtml"
localNamestring

Returns

HTMLCollectionOf<HTMLElement>

Inherited from

HTMLElement.getElementsByTagNameNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4821

getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>

Parameters

NameType
namespaceURI"http://www.w3.org/2000/svg"
localNamestring

Returns

HTMLCollectionOf<SVGElement>

Inherited from

HTMLElement.getElementsByTagNameNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4822

getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>

Parameters

NameType
namespacenull | string
localNamestring

Returns

HTMLCollectionOf<Element>

Inherited from

HTMLElement.getElementsByTagNameNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4823


getRootNode

getRootNode(options?): Node

Returns node's root.

Parameters

NameType
options?GetRootNodeOptions

Returns

Node

Inherited from

HTMLElement.getRootNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9808


hasAttribute

hasAttribute(qualifiedName): boolean

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

Parameters

NameType
qualifiedNamestring

Returns

boolean

Inherited from

HTMLElement.hasAttribute

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4825


hasAttributeNS

hasAttributeNS(namespace, localName): boolean

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

Parameters

NameType
namespacenull | string
localNamestring

Returns

boolean

Inherited from

HTMLElement.hasAttributeNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4827


hasAttributes

hasAttributes(): boolean

Returns true if element has attributes, and false otherwise.

Returns

boolean

Inherited from

HTMLElement.hasAttributes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4829


hasChildNodes

hasChildNodes(): boolean

Returns whether node has children.

Returns

boolean

Inherited from

HTMLElement.hasChildNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9810


hasPointerCapture

hasPointerCapture(pointerId): boolean

Parameters

NameType
pointerIdnumber

Returns

boolean

Inherited from

HTMLElement.hasPointerCapture

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4830


insertAdjacentElement

insertAdjacentElement(where, element): null \| Element

Parameters

NameType
whereInsertPosition
elementElement

Returns

null \| Element

Inherited from

HTMLElement.insertAdjacentElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4831


insertAdjacentHTML

insertAdjacentHTML(position, text): void

Parameters

NameType
positionInsertPosition
textstring

Returns

void

Inherited from

HTMLElement.insertAdjacentHTML

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4832


insertAdjacentText

insertAdjacentText(where, data): void

Parameters

NameType
whereInsertPosition
datastring

Returns

void

Inherited from

HTMLElement.insertAdjacentText

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4833


insertBefore

insertBefore<T>(node, child): T

Type parameters

NameType
Textends Node

Parameters

NameType
nodeT
childnull | Node

Returns

T

Inherited from

HTMLElement.insertBefore

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9811


isDefaultNamespace

isDefaultNamespace(namespace): boolean

Parameters

NameType
namespacenull | string

Returns

boolean

Inherited from

HTMLElement.isDefaultNamespace

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9812


isEqualNode

isEqualNode(otherNode): boolean

Returns whether node and otherNode have the same properties.

Parameters

NameType
otherNodenull | Node

Returns

boolean

Inherited from

HTMLElement.isEqualNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9814


isSameNode

isSameNode(otherNode): boolean

Parameters

NameType
otherNodenull | Node

Returns

boolean

Inherited from

HTMLElement.isSameNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9815


lookupNamespaceURI

lookupNamespaceURI(prefix): null \| string

Parameters

NameType
prefixnull | string

Returns

null \| string

Inherited from

HTMLElement.lookupNamespaceURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9816


lookupPrefix

lookupPrefix(namespace): null \| string

Parameters

NameType
namespacenull | string

Returns

null \| string

Inherited from

HTMLElement.lookupPrefix

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9817


matches

matches(selectors): boolean

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

Parameters

NameType
selectorsstring

Returns

boolean

Inherited from

HTMLElement.matches

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4835


migrateModelVersion

migrateModelVersion(model): T

Allows for an activity to perform an inline, just in time, model migration. As an activity's implementation changes over time, it may become necessary to make structural changes to the schema of the activity's model. The activity will need to support the original versions of this model, however, as there will likely have been many instances of this original model already created and stored in the Torus database.

The migrateModelVersion function will be called by the component just before each call to render.

Parameters

NameTypeDescription
modelanythe state of the model of the activity, as deliveredy by Torus to this activity

Returns

T

a possibly migrated (i.e. upgraded) activity model, or the model as-is if no migration is needed

Defined in

src/components/activities/AuthoringElement.ts:125


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

HTMLElement.normalize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9819


notify

notify(eventName, payload): void

Parameters

NameType
eventNamestring
payloadany

Returns

void

Defined in

src/components/activities/AuthoringElement.ts:154


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

NameType
...nodes(string | Node)[]

Returns

void

Inherited from

HTMLElement.prepend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10158


props

props(): AuthoringElementProps<T> & SectionAuthoringProps

Returns

AuthoringElementProps<T> & SectionAuthoringProps

Defined in

src/components/activities/AuthoringElement.ts:67


querySelector

querySelector<K>(selectors): null \| HTMLElementTagNameMap[K]

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

Type parameters

NameType
Kextends keyof HTMLElementTagNameMap

Parameters

NameType
selectorsK

Returns

null \| HTMLElementTagNameMap[K]

Inherited from

HTMLElement.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10160

querySelector<K>(selectors): null \| SVGElementTagNameMap[K]

Type parameters

NameType
Kextends keyof SVGElementTagNameMap

Parameters

NameType
selectorsK

Returns

null \| SVGElementTagNameMap[K]

Inherited from

HTMLElement.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10161

querySelector<E>(selectors): null \| E

Type parameters

NameType
Eextends Element = Element

Parameters

NameType
selectorsstring

Returns

null \| E

Inherited from

HTMLElement.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10162


querySelectorAll

querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>

Returns all element descendants of node that match selectors.

Type parameters

NameType
Kextends keyof HTMLElementTagNameMap

Parameters

NameType
selectorsK

Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from

HTMLElement.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10164

querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>

Type parameters

NameType
Kextends keyof SVGElementTagNameMap

Parameters

NameType
selectorsK

Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from

HTMLElement.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10165

querySelectorAll<E>(selectors): NodeListOf<E>

Type parameters

NameType
Eextends Element = Element

Parameters

NameType
selectorsstring

Returns

NodeListOf<E>

Inherited from

HTMLElement.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10166


releasePointerCapture

releasePointerCapture(pointerId): void

Parameters

NameType
pointerIdnumber

Returns

void

Inherited from

HTMLElement.releasePointerCapture

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4836


remove

remove(): void

Removes node.

Returns

void

Inherited from

HTMLElement.remove

Defined in

node_modules/typescript/lib/lib.dom.d.ts:3505


removeAttribute

removeAttribute(qualifiedName): void

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

Parameters

NameType
qualifiedNamestring

Returns

void

Inherited from

HTMLElement.removeAttribute

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4838


removeAttributeNS

removeAttributeNS(namespace, localName): void

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

Parameters

NameType
namespacenull | string
localNamestring

Returns

void

Inherited from

HTMLElement.removeAttributeNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4840


removeAttributeNode

removeAttributeNode(attr): Attr

Parameters

NameType
attrAttr

Returns

Attr

Inherited from

HTMLElement.removeAttributeNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4841


removeChild

removeChild<T>(child): T

Type parameters

NameType
Textends Node

Parameters

NameType
childT

Returns

T

Inherited from

HTMLElement.removeChild

Defined in

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


removeEventListener

removeEventListener<K>(type, listener, options?): void

Type parameters

NameType
Kextends keyof HTMLElementEventMap

Parameters

NameType
typeK
listener(this: HTMLElement, ev: HTMLElementEventMap[K]) => any
options?boolean | EventListenerOptions

Returns

void

Inherited from

HTMLElement.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6244

removeEventListener(type, listener, options?): void

Parameters

NameType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | EventListenerOptions

Returns

void

Inherited from

HTMLElement.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6245


render

Abstract render(mountPoint, props): void

Implemented by concrete web component, the render method is called once after the web component has been mounted and "connected" to the DOM, and then again every time that either the editMode or model attributes have changed on the web component.

Parameters

NameTypeDescription
mountPointHTMLDivElementa top level div element created by the component that the concrete impl can use to render the rest of the actual UX
propsAuthoringElementProps<T>the current set of authoring component properties

Returns

void

Defined in

src/components/activities/AuthoringElement.ts:167


replaceChild

replaceChild<T>(node, child): T

Type parameters

NameType
Textends Node

Parameters

NameType
nodeNode
childT

Returns

T

Inherited from

HTMLElement.replaceChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:9821


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

NameType
...nodes(string | Node)[]

Returns

void

Inherited from

HTMLElement.replaceChildren

Defined in

node_modules/typescript/lib/lib.dom.d.ts:10172


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

NameType
...nodes(string | Node)[]

Returns

void

Inherited from

HTMLElement.replaceWith

Defined in

node_modules/typescript/lib/lib.dom.d.ts:3511


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

NameType
options?FullscreenOptions

Returns

Promise<void>

Inherited from

HTMLElement.requestFullscreen

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4847


requestPointerLock

requestPointerLock(): void

Returns

void

Inherited from

HTMLElement.requestPointerLock

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4848


scroll

scroll(options?): void

Parameters

NameType
options?ScrollToOptions

Returns

void

Inherited from

HTMLElement.scroll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4849

scroll(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Inherited from

HTMLElement.scroll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4850


scrollBy

scrollBy(options?): void

Parameters

NameType
options?ScrollToOptions

Returns

void

Inherited from

HTMLElement.scrollBy

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4851

scrollBy(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Inherited from

HTMLElement.scrollBy

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4852


scrollIntoView

scrollIntoView(arg?): void

Parameters

NameType
arg?boolean | ScrollIntoViewOptions

Returns

void

Inherited from

HTMLElement.scrollIntoView

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4853


scrollTo

scrollTo(options?): void

Parameters

NameType
options?ScrollToOptions

Returns

void

Inherited from

HTMLElement.scrollTo

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4854

scrollTo(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Inherited from

HTMLElement.scrollTo

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4855


setAttribute

setAttribute(qualifiedName, value): void

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

Parameters

NameType
qualifiedNamestring
valuestring

Returns

void

Inherited from

HTMLElement.setAttribute

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4857


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

NameType
namespacenull | string
qualifiedNamestring
valuestring

Returns

void

Inherited from

HTMLElement.setAttributeNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4859


setAttributeNode

setAttributeNode(attr): null \| Attr

Parameters

NameType
attrAttr

Returns

null \| Attr

Inherited from

HTMLElement.setAttributeNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4860


setAttributeNodeNS

setAttributeNodeNS(attr): null \| Attr

Parameters

NameType
attrAttr

Returns

null \| Attr

Inherited from

HTMLElement.setAttributeNodeNS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4861


setPointerCapture

setPointerCapture(pointerId): void

Parameters

NameType
pointerIdnumber

Returns

void

Inherited from

HTMLElement.setPointerCapture

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4862


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

NameType
qualifiedNamestring
force?boolean

Returns

boolean

Inherited from

HTMLElement.toggleAttribute

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4868


webkitMatchesSelector

webkitMatchesSelector(selectors): boolean

deprecated This is a legacy alias of matches.

Parameters

NameType
selectorsstring

Returns

boolean

Inherited from

HTMLElement.webkitMatchesSelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4870