MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / el

Function el

libatomic/src/review/viewer.js:42–47  ·  view source on GitHub ↗
(tag, className, text)

Source from the content-addressed store, hash-verified

40 }
41 const $ = id => document.getElementById(id);
42 const el = (tag, className, text) => {
43 const node = document.createElement(tag);
44 if (className) node.className = className;
45 if (text !== undefined && text !== null) node.textContent = String(text);
46 return node;
47 };
48 const button = (text, action, className = '') => {
49 const node = el('button', className, text);
50 node.type = 'button';

Callers 15

buttonFunction · 0.85
badgeFunction · 0.85
detailFunction · 0.85
definitionFunction · 0.85
showCardFunction · 0.85
findingBlockFunction · 0.85
acceptanceBlockFunction · 0.85
metricTableFunction · 0.85
sourceViewerFunction · 0.85
updateFunction · 0.85
impactEvidenceFunction · 0.85
selectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected