Starting from Webix 8.0 the widget is deprecated. Use a more powerful alternative - the Scheduler.
To use Scheduler in your application you should make 2 steps:
You need to include 4 files. They are:
<!-- js files -->
<script src="codebase/webix.js" type="text/javascript"></script>
<script src="codebase/scheduler.js" type="text/javascript"></script>
<!-- css files -->
<link rel="stylesheet" href="codebase/webix.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="codebase/scheduler.css" type="text/css" charset="utf-8">
To initialize the component you should use the following code:
//webix.ready() function ensures that the code will be executed when the page is loaded
webix.ready(function(){
//the method allows to adjust a main view to screen size
webix.ui.fullScreen();
//object constructor
webix.ui({
view: "scheduler",
id: "scheduler"
});
//the method load() lets you populate the event calendar with data
$$("scheduler").load("../common/mobile.json");
});
Related sample: Initialization
Here is a list of configuration properties with examples of usage. All of them have default values, but you can redefine them if you need.
scheduler.config.init_date = new Date(2014,5,1);
scheduler.config.multi_day = true;
scheduler.config.multi_day_limit = 4;
scheduler.config.server_utc = true;
scheduler.config.separate_short_events = false;
scheduler.config.recurring = true;
Back to top