MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / buildVariableSection

Function buildVariableSection

packages/sdk-playground/src/main.ts:891–901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

889}
890
891function buildVariableSection(): HTMLDivElement {
892 const id = mkInput("variable id", "brand-color");
893 id.style.width = "110px";
894 const val = mkInput("value", "#f43f5e");
895 val.style.width = "100px";
896 const set = mkBtn("Set", "primary", () => {
897 comp!.setVariableValue(id.value.trim(), val.value.trim());
898 logEntry("op", { setVariableValue: { id: id.value, value: val.value } });
899 });
900 return opSection("setVariableValue", opRow(id, val, set));
901}
902
903function buildFindSection(): HTMLDivElement {
904 const tag = mkInput("tag", "");

Callers

nothing calls this directly

Calls 6

mkInputFunction · 0.85
mkBtnFunction · 0.85
logEntryFunction · 0.85
opSectionFunction · 0.85
opRowFunction · 0.85
setVariableValueMethod · 0.65

Tested by

no test coverage detected