Document

APIDocument

Source

Document.onBeforeRender(file)

Parameters:
  • file — Document
Type:
Signal

Corresponding node handler: n-onBeforeRender="".

Source

Document.onRender(file)

Parameters:
  • file — Document
Type:
Signal

Corresponding node handler: n-onRender="".

Source

Document.onBeforeRevert(file)

Parameters:
  • file — Document
Type:
Signal

Corresponding node handler: n-onBeforeRevert="".

Source

Document.onRevert(file)

Parameters:
  • file — Document
Type:
Signal

Corresponding node handler: n-onRevert="".

Source

Document.fromHTML(path, html)

Parameters:
  • path — String
  • html — String
Returns:
Document

Source

Document.fromElement(path, element)

Parameters:
  • path — String
  • element — Element
Returns:
Document

Source

Document.fromJSON(json)

Parameters:
  • json — Object or String
Returns:
Document

Source

Document.parse(file)

Parameters:
  • file — Document

Source

Document.factory(path)

Parameters:
  • path — String
Returns:
Document

Source

Document::constructor(path, element)

Parameters:
  • path — String
  • element — Element
Returns:
Document

Source

Document::render(props, context, source)

Parameters:
  • props — Anyoptional
  • context — Anyoptional
  • source — Documentoptional
Returns:
Document

Source

Document::revert()

Returns:
Document

Source

Document::use(useName, document)

Parameters:
  • useName — String
  • document — Documentoptional
Returns:
Document

Source

Document::onReplaceByUse(use)

Parameters:
  • use — Document.Use
Type:
Signal

Corresponding node handler: n-onReplaceByUse="".

Source

Document::clone()

Returns:
Document

Source

Document::destroy()

Source

Document::toJSON()

Returns:
Object

Source