data

JavaScript array containing data for the component

array data;

Example

webix.ui({
    view: "todo",
    data: [{
                id: 1,
                text: "Learn about Webix",
                checked: true,
                assigned: ["user_1", "user_2", "user_3", "user_4"],
                parent: 0,
                due_date: "2023-02-16",
                project: "ui",
                open: true,
                priority: 2
            },
            ...
        ],
        ...
});

Details

Each object in the array can have the following properties:

  • id (string, number) - the id of the task
  • text (string) - the text content of the task
  • checked (boolean) - toggles the checkbox
  • assigned (array) - an array of users assigned to the task
  • parent (string, number) - the id of the parent task. If there is no parent, the value will be 0.
  • due_date (string) - the due date of the task
  • project (string) - the name of the project in which task was created
  • open (boolean) - toggles readiness of the task
  • priority (number) - a priority level. Possible options are 1, 2, 3.
Back to top