makeSelect2ContainerWithPlaceholder function infrastructure
Last updated: 2026-03-01T23:25:47.095Z
Metrics
LOC: 8
Complexity: 1
Params: 0
Signature
makeSelect2ContainerWithPlaceholder(): : HTMLElement
Source Code
function makeSelect2ContainerWithPlaceholder(): HTMLElement {
const { container } = makeSelect2Container();
const placeholder = document.createElement("span");
placeholder.className = "select2-selection__placeholder";
placeholder.textContent = "Select an option";
container.querySelector(".select2-selection")!.appendChild(placeholder);
return container;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| makeSelect2Container | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| makeSelect2Container | calls |