Here are a few APIs that might be helpful:
- (Desktop only) Adding a right-click menu item in the note list (and possibly a button when multiple notes are selected):
- (Desktop and mobile) Adding buttons to the note toolbar:
- (Desktop and mobile) Getting/setting note and to-do metadata:
- joplin.data | Joplin Plugin API Documentation
- In particular,
joplin.data.get and joplin.data.put.
- For example, to get the due date (a number, in milliseconds) for a task, the following should work:
-
// For some noteId,
const note = await joplin.data.get(["notes", noteId], {
fields: [
"title",
"todo_due",
],
});
console.log(note.todo_due);
- It might also be helpful to see how the Note Tabs plugin updates the completed time of a to-do.
- Data API: List of available note properties
2 Likes