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

Function renderTaskCardTitleText

src/ui/taskCardTitle.ts:28–42  ·  view source on GitHub ↗
(
	container: HTMLElement,
	task: TaskInfo,
	plugin: TaskNotesPlugin,
	displayText?: string
)

Source from the content-addressed store, hash-verified

26}
27
28export function renderTaskCardTitleText(
29 container: HTMLElement,
30 task: TaskInfo,
31 plugin: TaskNotesPlugin,
32 displayText?: string
33): void {
34 container.empty();
35 const linkServices: LinkServices = {
36 metadataCache: plugin.app.metadataCache,
37 workspace: plugin.app.workspace,
38 sourcePath: task.path,
39 };
40
41 renderTextWithLinks(container, getTaskCardTitleText(task, displayText), linkServices);
42}
43
44export function syncTaskCardTitleCompletion(card: HTMLElement, isCompleted: boolean): void {
45 const titleEl = card.querySelector<HTMLElement>(".task-card__title");

Callers 3

createTaskCardTitleFunction · 0.85
updateTaskCardTitleFunction · 0.85

Calls 2

renderTextWithLinksFunction · 0.90
getTaskCardTitleTextFunction · 0.85

Tested by

no test coverage detected