Skip to content

CustomElementRegistry

Values

define

let define: (
DomTypes.customElementRegistry,
~name: string,
~constructor: DomTypes.htmlElement,
~options: DomTypes.elementDefinitionOptions=?,
) => unit

Parameters

DomTypes.customElementRegistry string DomTypes.htmlElement option< DomTypes.elementDefinitionOptions >

Return type

unit

getName

let getName: (
DomTypes.customElementRegistry,
DomTypes.customElementConstructor,
) => string

Parameters

DomTypes.customElementRegistry DomTypes.customElementConstructor

Return type

string

upgrade

let upgrade: (DomTypes.customElementRegistry, DomTypes.node) => unit

Parameters

DomTypes.customElementRegistry DomTypes.node

Return type

unit

whenDefined

let whenDefined: (
DomTypes.customElementRegistry,
string,
) => promise<DomTypes.customElementConstructor>

Parameters

DomTypes.customElementRegistry string

Return type

promise< DomTypes.customElementConstructor >