makeAffixWrapper function infrastructure

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

Metrics

LOC: 22 Complexity: 5 Params: 3

Signature

makeAffixWrapper( type = "text", opts: { disabled?: boolean; placeholder?: string; name?: string; id?: string; } = {}, )

Source Code

function makeAffixWrapper(
  type = "text",
  opts: {
    disabled?: boolean;
    placeholder?: string;
    name?: string;
    id?: string;
  } = {},
) {
  const wrapper = document.createElement("div");
  wrapper.className = "ant-input-affix-wrapper";
  if (opts.disabled) wrapper.classList.add("ant-input-disabled");

  const input = document.createElement("input");
  input.type = type;
  if (opts.placeholder) input.placeholder = opts.placeholder;
  if (opts.name) input.name = opts.name;
  if (opts.id) input.id = opts.id;

  wrapper.appendChild(input);
  return { wrapper, input };
}

Dependencies (Outgoing)

graph LR makeAffixWrapper["makeAffixWrapper"] makeInputNumber["makeInputNumber"] makeRadioGroup["makeRadioGroup"] makeAffixWrapper -->|calls| makeAffixWrapper makeAffixWrapper -->|calls| makeInputNumber makeAffixWrapper -->|calls| makeRadioGroup style makeAffixWrapper fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeAffixWrapper "94d6d1b96c609848.html" click makeInputNumber "80f8dcc00e6b6a7a.html" click makeRadioGroup "e1c72f36c6147607.html"
TargetType
makeAffixWrapper calls
makeInputNumber calls
makeRadioGroup calls

Impact (Incoming)

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