- getAllNotes() ⇒
Array.<Note>
Get all notes from localStorage.
- saveNote(noteToSave)
Save the notes, or edits the note, if they already exist.
- deleteNote(noteToDel)
Delete notes from localStorage.
- setNoteStatus(note, status)
Switching the status of notes according to
status
.
Get all notes from localStorage.
Returns: Array.<Note>
- Notes array sorted by edit time.
Save the notes, or edits the note, if they already exist.
Param | Type | Description |
---|---|---|
noteToSave | Note |
The notes to be saved or edited. |
Delete notes from localStorage.
Param | Type | Description |
---|---|---|
noteToDel | Note |
The notes to be deleted. |
Switching the status of notes according to status
.
Param | Type | Description |
---|---|---|
note | Note |
To change the status of the notes. |
status | String |
Status to be changed. (completed or archived) |