Constructor
new List(properties)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
Object | Properties of the List
Properties
|
Methods
(async) addSimpleTask(title, contentopt, dateopt, isAllDayopt, reminders)
Adds a task to the current List
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
title |
string | Title of the task | |
content |
string |
<optional> |
Description of the task |
date |
Date |
<optional> |
Date assigned to the task |
isAllDay |
boolean |
<optional> |
Whether the task is assigned for date's entire day or the specifc time |
reminders |
Array.<Reminder> | Reminders of the task |
(async, private) getCompletedTasks() → {Array.<Task>}
Get all tasks from the list that are completed
Returns:
Tasks with status equal to COMPLETED
- Type
- Array.<Task>
(async, private) getTodoTasks() → {Array.<Task>}
Get all tasks from the list that are uncompleted
Returns:
Tasks with status equal to TODO
- Type
- Array.<Task>