1.26.2.1
Gameface
CustomElementRegistry Interface Reference

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

Public Member Functions

void define (DOMString name, AnyCallback constructor, optional ElementDefinitionOptions options)
 Define a new custom element. More...
 

Detailed Description

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

Member Function Documentation

◆ define()

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

Define a new custom element.

Parameters
namethe tag for the new custom element. Must include a dash
constructorthe constructor that is to be used whenever an instance of the custom element is created
optionsoptions for the custom element