Creating ToDo

You can create ToDo as a Webix view or as a standalone Jet app. Both ways will lead to the same result.

  • Creating ToDo as a Webix view:
webix.ready(function() {
    if (webix.env.mobile) webix.ui.fullScreen();
    webix.CustomScroll.init();
 
    webix.ui({
        view: "todo",
        data: base_data,
        users: users,
        projects: projects,
    });
});

Related sample:  ToDo: View Initialization

  • Initializing ToDo as an instance of Jet app class and render it in the document body (or in any other HTML container):
webix.ready(function() {
    if (webix.env.mobile) webix.ui.fullScreen();
    webix.CustomScroll.init();
 
    var app = new todo.App({
        data: base_data,
        users: users,
        projects: projects,
    });
    app.render(document.body);
});

Related sample:  ToDo: JetApp Initialization

Back to top