Constructor
new IndexView(storage)
Parameters:
Name | Type | Description |
---|---|---|
storage |
Storage | Storage object. |
- Source:
Methods
addToAutocomplete(field, newValue)
Adds a new value to the array of possible autocomplete options, if it is not included yet.
Parameters:
Name | Type | Description |
---|---|---|
field |
string | The field to which a new value should be added. |
newValue |
string | The new value to add. |
- Source:
displayBalances(id)
Displays the current (= current month) surplus for each budget.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the dom element in which the content should appear. |
- Source:
displayBudgets(id)
Displays all currently available budgets in a simple overview.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the dom element which contains the budget display. |
- Source:
displayRecentTransactions(id, type)
Displays recent transactions, if existing.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the dom element in which the content should appear. |
type |
string | The type of transactions we want to display (can be either earning or spending). |
- Source:
displayRecurrTrans(id)
Displays all recurring transactions in a simple overview.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the dom element which contains the recurring transactions display. |
- Source:
updateView()
Updates the view.
- Source: