makeTreeSelect function test

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

Metrics

LOC: 25 Complexity: 2 Params: 1

Signature

makeTreeSelect({ disabled = false } = {}): : HTMLElement

Source Code

function makeTreeSelect({ disabled = false } = {}): HTMLElement {
  const wrapper = document.createElement("div");
  wrapper.className =
    "ant-select ant-tree-select" + (disabled ? " ant-select-disabled" : "");

  const selector = document.createElement("div");
  selector.className = "ant-select-selector";

  const search = document.createElement("span");
  search.className = "ant-select-selection-search";

  const input = document.createElement("input");
  input.setAttribute("role", "combobox");
  search.appendChild(input);

  const placeholder = document.createElement("span");
  placeholder.className = "ant-select-selection-placeholder";
  placeholder.textContent = "Please select";

  selector.appendChild(search);
  selector.appendChild(placeholder);
  wrapper.appendChild(selector);
  document.body.appendChild(wrapper);
  return wrapper;
}

No outgoing dependencies.

Impact (Incoming)

graph LR makeTreeSelect["makeTreeSelect"] makeAutoComplete["makeAutoComplete"] makeAutoComplete -->|calls| makeTreeSelect style makeTreeSelect fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeTreeSelect "0d49ca8109bc38f7.html" click makeAutoComplete "ded28ef3cc941295.html"
SourceType
makeAutoComplete calls