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

Method addText

tests/__mocks__/obsidian.ts:818–828  ·  view source on GitHub ↗
(callback: (text: any) => void)

Source from the content-addressed store, hash-verified

816 }
817
818 addText(callback: (text: any) => void): Setting {
819 const mockText = {
820 inputEl: document.createElement('input'),
821 setPlaceholder: (placeholder: string) => mockText,
822 setValue: (value: string) => mockText,
823 onChange: (callback: (value: string) => void) => mockText,
824 setDisabled: (disabled: boolean) => mockText,
825 };
826 callback(mockText);
827 return this;
828 }
829
830 addTextArea(callback: (text: any) => void): Setting {
831 const mockTextArea = {

Callers 15

onOpenMethod · 0.45
createModalContentMethod · 0.45
onOpenMethod · 0.45
onOpenMethod · 0.45
onOpenMethod · 0.45
onOpenMethod · 0.45
createTaskModalTagsFieldFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected