MCPcopy
hub / github.com/exceljs/exceljs / render

Method render

lib/xlsx/xform/simple/string-xform.js:12–25  ·  view source on GitHub ↗
(xmlStream, model)

Source from the content-addressed store, hash-verified

10 }
11
12 render(xmlStream, model) {
13 if (model !== undefined) {
14 xmlStream.openNode(this.tag);
15 if (this.attrs) {
16 xmlStream.addAttributes(this.attrs);
17 }
18 if (this.attr) {
19 xmlStream.addAttribute(this.attr, model);
20 } else {
21 xmlStream.writeText(model);
22 }
23 xmlStream.closeNode();
24 }
25 }
26
27 parseOpen(node) {
28 if (node.name === this.tag) {

Callers

nothing calls this directly

Calls 5

openNodeMethod · 0.80
addAttributesMethod · 0.80
addAttributeMethod · 0.80
writeTextMethod · 0.80
closeNodeMethod · 0.80

Tested by

no test coverage detected