CustomElementRegistry

Module: JavaScript DOM API

Custom element registry for the view. It allows to register new custom elements.

#include <CustomElementRegistry.idl>

Public Functions

Name
voiddefine(DOMString name, AnyCallback constructor, optional ElementDefinitionOptions options)
Define a new custom element.

Public Functions Documentation

function define

void define(
    DOMString name,
    AnyCallback constructor,
    optional ElementDefinitionOptions options
)

Define a new custom element.

Parameters:

  • name the tag for the new custom element. Must include a dash
  • constructor the constructor that is to be used whenever an instance of the custom element is created
  • options options for the custom element