mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Defenitions for dhtmlxScheduler and dhtmlxGantt
This commit is contained in:
@@ -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;
|
||||
});
|
||||
Vendored
+1604
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user