makeCheckboxGroup function infrastructure

Last updated: 2026-03-01T23:25:47.092Z

Metrics

LOC: 24 Complexity: 3 Params: 2

Signature

makeCheckboxGroup( options: Array<{ value: string; text: string; checked?: boolean }>, )

Source Code

function makeCheckboxGroup(
  options: Array<{ value: string; text: string; checked?: boolean }>,
) {
  const group = document.createElement("div");
  group.className = "ant-checkbox-group";

  for (const opt of options) {
    const label = document.createElement("label");
    label.className = `ant-checkbox-wrapper${opt.checked ? " ant-checkbox-wrapper-checked" : ""}`;
    const span = document.createElement("span");
    span.className = "ant-checkbox";
    const input = document.createElement("input");
    input.type = "checkbox";
    input.value = opt.value;
    span.appendChild(input);
    const textSpan = document.createElement("span");
    textSpan.textContent = opt.text;
    label.appendChild(span);
    label.appendChild(textSpan);
    group.appendChild(label);
  }

  return group;
}

Dependencies (Outgoing)

graph LR makeCheckboxGroup["makeCheckboxGroup"] makeSwitch["makeSwitch"] makeRate["makeRate"] makeCheckboxGroup -->|calls| makeCheckboxGroup makeCheckboxGroup -->|calls| makeSwitch makeCheckboxGroup -->|calls| makeRate style makeCheckboxGroup fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeCheckboxGroup "8988d62b46d478d1.html" click makeSwitch "0b116f397cb3bae4.html" click makeRate "a41c61a195d44e84.html"
TargetType
makeCheckboxGroup calls
makeSwitch calls
makeRate calls

Impact (Incoming)

graph LR makeCheckboxGroup["makeCheckboxGroup"] makeCheckboxGroup -->|calls| makeCheckboxGroup style makeCheckboxGroup fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeCheckboxGroup "8988d62b46d478d1.html"
SourceType
makeCheckboxGroup calls