Converse converse.js

Namespace: elements

elements

The "elements" namespace groups methods relevant to registering custom HTML elements.

Source:

Methods

(static) define(name, constructor)

Defines a new custom HTML element.

By using this API instead of customElements.define from the DOM, we can allow custom elements to be overwritten.

Once converse.initialize() is called, api.elements.register() will get called and all custom elements will be registered to the DOM, from which point onward they cannot be overwritten.

Parameters:
Name Type Description
name string
constructor object
Source:

(static) register()

Registers all previously defined custom HTML elements

Source: