editingNote

Actions for changing the editingNote app state, including updating note details and managing note editing.


update(data)

Update

Update the editing note data.

  • Name
    data
    Type
    Partial<Note>
    Required
    Description

    A Note data object to update. Every field of the Note is optional. You can pass pairs of fields you would like to update.

To change the title of the editing note:

import { actions } from 'inkdrop'
inkdrop.store.dispatch(actions.editingNote.update({ title: 'NEW TITLE' }))
inkdrop.store.dispatch(actions.editor.change(true))

open(note)

Open

Load a note data to the editor.

  • Name
    note
    Type
    object
    Required
    Description

    A Note data object to load.


close()

Close

Close the editing note.


Can you help us improve the docs? 🙏

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!