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)
| Target | Type |
|---|---|
| makeAffixWrapper | calls |
| makeInputNumber | calls |
| makeRadioGroup | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| makeAffixWrapper | calls |