MCPcopy Create free account
hub / github.com/shoutem/ui / openTag

Method openTag

html/services/HtmlParser.js:77–80  ·  view source on GitHub ↗

* Create new element, add it to active node, and set it as active. * @param tag {String} Element Tag name * @param attributes {Object} Element attributes * @param childElements {Array} Element children

(tag, attributes, childElements)

Source from the content-addressed store, hash-verified

75 * @param childElements {Array} Element children
76 */
77 openTag(tag, attributes, childElements) {
78 const element = this.addChild(tag, attributes, childElements);
79 this.activeNode = element;
80 }
81
82 /**
83 * Create new element and add to active node.

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.95

Tested by

no test coverage detected