Monster.DOM. Assembler

Assembler class

Constructor

new Assembler(fragment)

Allows you to build an html fragment

Parameters:
NameTypeDescription
fragmentDocumentFragment
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

Methods

createDocumentFragment(data) → {DocumentFragment}

Parameters:
NameTypeDescription
dataProxyObserver | undefined
Throws:

value is not an instance of

Type
TypeError
Returns:
Type: 
DocumentFragment

getAttributePrefix() → {string}

Returns:
Type: 
string

setAttributePrefix(prefix) → {Assembler}

Parameters:
NameTypeDescription
prefixstring
Throws:

value is not a string

Type
TypeError
Returns:
Type: 
Assembler