Tag

API ReferenceDocumentElementTag

Source


constructor()

Extends
Element
Returns
Tag

Source


name

Type
String

children

Type
Array

onChildrenChange()

Parameters
  • added — Element
  • removed — Element
Type
Signal

Source


props

Type
Element.Tag.Props

onPropsChange()

Parameters
  • attribute — String
  • oldValue — Any
Type
Signal

Source


cloneDeep()

Returns
Element.Tag

Source


getCopiedElement()

Parameters
  • lookForElement — Element
  • copiedParent — Element
Returns
Element

Source


getChildByAccessPath()

Parameters
  • accessPath — Array
Returns
Element.Tag

Source


queryAll()

Parameters
  • query — String
  • onElement — Functionoptional
  • onElementContext — Anyoptional
Returns
Array

Source


query()

Parameters
  • query — String
Returns
Element

Source


watch()

Parameters
  • query — String
Returns
Watcher
var watcher = doc.watch('div > * > b[attr]');
watcher.onAdd(function(tag){});
watcher.onRemove(function(tag){});
watcher.disconnect();

Source


stringify()

Parameters
  • replacements — Objectoptional
Returns
String

Source


stringifyChildren()

Parameters
  • replacements — Objectoptional
Returns
String

Source


replace()

Parameters
  • oldElement — Element
  • newElement — Element

Source

results matching ""

    No results matching ""