Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.73 KB

NotesAPI.md

File metadata and controls

54 lines (38 loc) · 1.73 KB

Functions

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.

getAllNotes() ⇒ Array.<Note>

Get all notes from localStorage.

Returns: Array.<Note> - Notes array sorted by edit time.

saveNote(noteToSave)

Save the notes, or edits the note, if they already exist.

Param Type Description
noteToSave Note The notes to be saved or edited.

deleteNote(noteToDel)

Delete notes from localStorage.

Param Type Description
noteToDel Note The notes to be deleted.

setNoteStatus(note, status)

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)