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

Method changePicker

src/cm/colorView.ts:393–403  ·  view source on GitHub ↗
(view: EditorView, canBeEdited: boolean)

Source from the content-addressed store, hash-verified

391 }
392
393 changePicker(view: EditorView, canBeEdited: boolean): void {
394 const doms = view.contentDOM.querySelectorAll("input[type=color]");
395 doms.forEach((inp) => {
396 const input = inp as HTMLInputElement;
397 if (canBeEdited) {
398 input.removeAttribute("disabled");
399 } else {
400 input.setAttribute("disabled", "");
401 }
402 });
403 }
404
405 destroy(): void {
406 if (this.flushTimer) {

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected