MCPcopy Create free account
hub / github.com/chhoumann/quickadd / appendDevelopmentInfoRow

Function appendDevelopmentInfoRow

src/quickAddSettingsDevelopmentInfo.ts:9–24  ·  view source on GitHub ↗
(
	container: HTMLElement,
	label: string,
	value: string,
	options?: { className?: string },
)

Source from the content-addressed store, hash-verified

7};
8
9function appendDevelopmentInfoRow(
10 container: HTMLElement,
11 label: string,
12 value: string,
13 options?: { className?: string },
14): HTMLElement {
15 const row = createOwnedElement(container, "div");
16 const labelEl = createOwnedElement(container, "strong");
17 labelEl.textContent = label;
18 row.appendChild(labelEl);
19 row.appendChild(createOwnedTextNode(container, ` ${value}`));
20 if (options?.className) row.classList.add(options.className);
21 row.classList.add("qa-dev-info-row");
22 container.appendChild(row);
23 return row;
24}
25
26export function renderDevelopmentInfo(
27 container: HTMLElement,

Callers 1

renderDevelopmentInfoFunction · 0.85

Calls 3

createOwnedElementFunction · 0.90
createOwnedTextNodeFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected