Defenitions for dhtmlxScheduler and dhtmlxGantt

This commit is contained in:
Maksim Kozhukh
2013-10-11 16:06:19 +03:00
parent 52952e923b
commit f83a65a5de
5 changed files with 2661 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
/// <reference path="./dhtmlx/dhtmlxscheduler.d.ts" />
//date operations
var start: Date = scheduler.date.week_start(new Date());
var next: Date = scheduler.date.add(new Date(), 1, "week");
//hotkeys
scheduler.keys.edit_cancel = 13;
//config options
scheduler.config.details_on_create = true;
scheduler.config.xml_date = "%m-%d-%Y";
scheduler.xy.bar_height = 40;
//templates
scheduler.templates.event_class = function (start: Date, end: Date, event: any) {
if (event.some)
return "classA";
else
return "classB";
}
//locale
scheduler.locale.labels.week_tab = "7 days";
//API
scheduler.init("scheduler_here", start);
scheduler.load("/data/events");
//events
scheduler.attachEvent("onEmptyClick", function (ev: Event) {
var date: Date = scheduler.getActionData(ev).date;
});
File diff suppressed because it is too large Load Diff