MCPcopy Create free account
hub / github.com/nodejs/node / td

Method td

deps/v8/tools/js/web-api-helper.mjs:256–265  ·  view source on GitHub ↗
(textOrNode, className)

Source from the content-addressed store, hash-verified

254 }
255
256 static td(textOrNode, className) {
257 const node = this.element('td');
258 if (typeof textOrNode === 'object') {
259 node.appendChild(textOrNode);
260 } else if (textOrNode) {
261 node.innerText = textOrNode;
262 }
263 if (className) node.className = className;
264 return node;
265 }
266
267 static tr(classes) {
268 return this.element('tr', classes);

Callers 7

constructorMethod · 0.80
addRowMethod · 0.80
renderDrilldownMethod · 0.80
_renderMethod · 0.80
_addFooterMethod · 0.80
_checkDurationFieldMethod · 0.80
_addRowMethod · 0.80

Calls 1

elementMethod · 0.95

Tested by

no test coverage detected