MCPcopy
hub / github.com/callumalpass/tasknotes / setPlaceholder

Method setPlaceholder

tests/__mocks__/obsidian.ts:935–935  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

933 container.appendChild(this.inputEl);
934 }
935 setPlaceholder(text: string) { this.inputEl.placeholder = text; return this; }
936 setValue(val: string) { this.inputEl.value = val ?? ''; return this; }
937 getValue(): string { return this.inputEl.value; }
938 onChange(cb: (value: string) => void) { this.inputEl.addEventListener('input', () => cb(this.inputEl.value)); return this; }

Callers 15

constructorMethod · 0.80
createModalContentMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
onOpenMethod · 0.80
onOpenMethod · 0.80
onOpenMethod · 0.80
constructorMethod · 0.80
onOpenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected