editingNote
Actions for changing editingNote app state.
Updating the editing note
If you would like to change the title of editing note, do like so:
import { actions } from 'inkdrop'
inkdrop.store.dispatch(actions.editingNote.update({ title: 'NEW TITLE' }))
inkdrop.store.dispatch(actions.editor.change(true))Actions
update(data)
Update the editing note data.
| Argument | Description |
|---|---|
data |
A Note data to update. Every field of Note is optional. You can pass pairs of fields you would like to update. |
open(note)
Load a note data to the editor.
Warning: Do not use this action in your plugin. Please use core:open-note command if you would like to open a note in the editor.
| Argument | Description |
|---|---|
note |
A Note data to load. |
close()
Close the editing note.
Warning: Do not use this action in your plugin. Please invoke editor.close action instead.
Can you help us improve these docs?
The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!