MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getValue

Function getValue

src/dialogs/multiPrompt.js:153–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 function getValue() {
154 const values = {};
155 const inputAr = [...$body.getAll("input")];
156 inputAr.map(($input) => {
157 if ($input.type === "checkbox" || $input.type === "radio")
158 values[$input.id] = $input.checked;
159 else values[$input.id] = $input.value;
160 });
161
162 return values;
163 }
164
165 /**
166 * Creates a group of inputs

Callers 1

multiPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected