Constructor
new NoteManager()
Konstruktor inicjuje pustą listę notatek.
- Source:
Classes
Methods
addNote(note)
Dodaje notatkę do listy i aktualizuje dane w localStorage.
Parameters:
| Name | Type | Description |
|---|---|---|
note |
object | Notatka do dodania. |
- Source:
getNotes() → {Array}
Pobiera listę notatek.
- Source:
Returns:
- Lista notatek.
- Type
- Array
loadNotes()
Ładuje notatki z localStorage, jeśli są dostępne.
- Source:
removeNote(index)
Usuwa notatkę z listy na podstawie indeksu i aktualizuje dane w localStorage.
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number | Indeks notatki do usunięcia. |
- Source:
updateLocalStorage()
Aktualizuje dane notatek w localStorage.
- Source: