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

Function value

src/dialogs/multiPrompt.js:282–297  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

280
281 Object.defineProperty($input, "setError", {
282 value(message) {
283 if (!message) {
284 $errorMessage.textContent = "";
285 okBtn.disabled = false;
286 return;
287 }
288
289 const $parent = this.parentElement;
290 if ($input.nextElementSibling) {
291 $parent.insertBefore($errorMessage, $input.nextElementSibling);
292 } else {
293 $parent.append($errorMessage);
294 }
295 $errorMessage.textContent = message;
296 okBtn.disabled = !!message;
297 },
298 });
299
300 if (onclick) $input.onclick = onclick.bind($input);

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected