MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / constructor

Method constructor

src/editor/TaskLinkWidget.ts:17–31  ·  view source on GitHub ↗
(
		taskInfo: TaskInfo,
		plugin: TaskNotesPlugin,
		originalText: string,
		displayText?: string,
		targetDate: Date = createUTCDateFromLocalCalendarDate(new Date())
	)

Source from the content-addressed store, hash-verified

15 private targetDateKey: string;
16
17 constructor(
18 taskInfo: TaskInfo,
19 plugin: TaskNotesPlugin,
20 originalText: string,
21 displayText?: string,
22 targetDate: Date = createUTCDateFromLocalCalendarDate(new Date())
23 ) {
24 super();
25 this.taskInfo = taskInfo;
26 this.plugin = plugin;
27 this.originalText = originalText;
28 this.displayText = displayText;
29 this.targetDate = targetDate;
30 this.targetDateKey = formatDateForStorage(targetDate);
31 }
32
33 toDOM(view: EditorView): HTMLElement {
34 // Get visible properties from settings (stores internal FieldMapping keys)

Callers

nothing calls this directly

Calls 2

formatDateForStorageFunction · 0.90

Tested by

no test coverage detected