Class: DialogHandler

DialogHandler(view)

Class for handling all kinds of dialogs.

Constructor

new DialogHandler(view)

Parameters:
Name Type Description
view View View object.
Source:

Methods

addBudgetDialog() → {bool}

Displays a dialog to add a new budget and handles the interaction of this dialog.
Source:
Returns:
True if the input is valid, else false.
Type
bool

addTransactionDialog() → {bool}

Displays a dialog to add a new transaction and handles the interaction of this dialog.
Source:
Returns:
True if the input is valid, else false.
Type
bool

addUserProfileDialog() → {bool}

Displays a dialog to add a new user profile and handles the interaction of this dialog.
Source:
Returns:
True if the input is valid, else false.
Type
bool

displayDialog(title, text, callbackopt)

Displays a dialog.
Parameters:
Name Type Attributes Description
title string The title of the dialog.
text string The content of the dialog.
callback function <optional>
A callback function which is executed after clicking the confirm button in the dialog.
Source:

displayErrorMsg(msg, coloropt)

Displays an error message in the currently open dialog.
Parameters:
Name Type Attributes Default Description
msg string The message to display.
color string <optional>
'red' The color of the alert.
Source:

editBudgetDialog(name) → {bool}

Displays a dialog to edit or delete a budget and handles the interaction of this dialog.
Parameters:
Name Type Description
name string The name of the budget we want to edit/delete.
Source:
Returns:
True if the input is valid, else false.
Type
bool

editEntryDialog(id) → {bool}

Displays a dialog to edit or delete an entry and handles the interaction of this dialog.
Parameters:
Name Type Description
id number The date (= id) of the entry.
Source:
Returns:
True if the input is valid, else false.
Type
bool

editRecTransDialog(id) → {bool}

Edits a given recurring transaction.
Parameters:
Name Type Description
id string The id (= start date) of the recurring transaction.
Source:
Returns:
True if the input is valid, else false.
Type
bool

editUserProfileDialog(user) → {bool}

Displays a dialog to edit the user profiles and handles the interaction of this dialog.
Parameters:
Name Type Description
user string The user profile to edit.
Source:
Returns:
True if the input is valid, else false.
Type
bool

execTransferDialog() → {bool}

Displays a dialog to transfer sums and handles the interaction of this dialog.
Source:
Returns:
True if the input is valid, else false.
Type
bool

setAllocationDialog() → {bool}

Displays a dialog to maintain the auto allocation and handles the interaction of this dialog.
Source:
Returns:
True if the input is valid, else false.
Type
bool