-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
I have the following simple query to list tasks
with a specific tag
(which works just fine).
However, I would have expected that the task.$link
property provides a link to the block where the task was defined.
Instead, all I get is an empty column.
In case this is intended (and not a bug), can anyone please advise me how I can turn task.$text
into a clickable link that brings me to the location where the task has been defined? Thanks!
const COLUMNS = [
{ id: "text", value: (task) => task.$text },
{ id: "tags", value: (task) => task.$tags },
{ id: "link", value: task => task.$link }
];
return function View() {
const tasks = dc.useQuery("@task and (#task or #meeting) and !$completed and scheduled");
const sortedTasks = dc.useArray(tasks, (array) => array.sort(task => task.value("scheduled")));
return <dc.Table columns={COLUMNS} rows={sortedTasks } />;
}
Metadata
Metadata
Assignees
Labels
No labels