MCPcopy
hub / github.com/exceljs/exceljs / addAttribute

Method addAttribute

lib/utils/xml-stream.js:67–74  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

65 }
66
67 addAttribute(name, value) {
68 if (!this.open) {
69 throw new Error('Cannot write attributes to node if it is not open');
70 }
71 if (value !== undefined) {
72 pushAttribute(this._xml, name, value);
73 }
74 }
75
76 addAttributes(attrs) {
77 if (!this.open) {

Callers 15

renderMethod · 0.80
renderMethod · 0.80
addMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
addMethod · 0.80
renderMethod · 0.80

Calls 1

pushAttributeFunction · 0.85

Tested by

no test coverage detected