Replies: 1 comment
-
I think you need to use I don't know what the javascript equivalent is. Wild ass guess: ...
// get the note object we want to change
const note = api.getNote(noteId);
// assign new title to the note object and update
api.patchNote(note.noteId {title: "new title"});
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble figuring out what the right way to change properties (like note.title) from a script. I can change the property on the backend, but that doesn't notify anything that the note has actually changed. To change the note title, I'm trying this:
This was just a guess based on some other scripts and doesn't work correctly. The title doesn't update on the frontend unless I reload (Ctrl+R) the electron app, but even then I think there are some synchronization conflicts since I've had the changes get undone sometimes.
What's the right way to modify a note and tell everything that the note has changed?
Beta Was this translation helpful? Give feedback.
All reactions