MCPcopy
hub / github.com/myliang/x-spreadsheet / child

Method child

src/component/element.js:129–138  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

127 */
128
129 child(arg) {
130 let ele = arg;
131 if (typeof arg === 'string') {
132 ele = document.createTextNode(arg);
133 } else if (arg instanceof Element) {
134 ele = arg.el;
135 }
136 this.el.appendChild(ele);
137 return this;
138 }
139
140 contains(ele) {
141 return this.el.contains(ele);

Callers 15

childrenMethod · 0.95
constructorMethod · 0.80
resetMethod · 0.80
buildMenuItemFunction · 0.80
constructorMethod · 0.80
addItemMethod · 0.80
renameItemMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
buildTableFunction · 0.80
buildTdFunction · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected