Monster.DOM. Template

The template class provides methods for creating templates.

Constructor

new Template(template)

A template class

Parameters:
NameTypeDescription
templateHTMLTemplateElement
Since
  • 1.6.0
License
  • AGPLv3
Throws:
  • value is not an instance of

    Type
    TypeError
  • value is not a function

    Type
    TypeError
  • the function is not defined

    Type
    Error

Members

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Since
  • 2.1.0

Methods

createDocumentFragment() → {DocumentFragment}

Throws:

value is not an instance of

Type
TypeError
Returns:
Type: 
DocumentFragment

getTemplateElement() → {HTMLTemplateElement}

Returns:
Type: 
HTMLTemplateElement