Constructor
new Entry(storage)
Parameters:
Name | Type | Description |
---|---|---|
storage |
Storage | Storage object. |
- Source:
Methods
deleteEntry(id)
Deletes a given entry.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id (= date) of the entry to delete. |
- Source:
editEntry(id, newProps)
Edits a given entry.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id (= date) of the entry to edit. |
newProps |
object | Object containing properties with new values. |
- Source: