MCPcopy Create free account
hub / github.com/alignoth/alignoth / dz

Function dz

resources/vega.min.js:29297–29309  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

29295 s(t, a, n, i);
29296 }
29297 function dz(t, e, n, r) {
29298 const i = sz("input");
29299 for (const t in n)
29300 "signal" !== t &&
29301 "element" !== t &&
29302 i.setAttribute("input" === t ? "type" : t, n[t]);
29303 (i.setAttribute("name", n.signal),
29304 (i.value = r),
29305 e.appendChild(i),
29306 i.addEventListener("input", () => t.update(i.value)),
29307 (t.elements = [i]),
29308 (t.set = (t) => (i.value = t)));
29309 }
29310 function pz(t, e, n, r) {
29311 const i = { type: "checkbox", name: n.signal };
29312 r && (i.checked = !0);

Callers

nothing calls this directly

Calls 2

szFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected