forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dhtmlxscheduler.d.ts
1782 lines (1473 loc) · 48.3 KB
/
dhtmlxscheduler.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Type definitions for dhtmlxScheduler 4.3.0
// Project: http://dhtmlx.com/docs/products/dhtmlxScheduler
// Definitions by: Maksim Kozhukh <http://github.com/mkozhukh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface SchedulerCallback { (...args: any[]) : any }
interface SchedulerFilterCallback { (id: string | number, event: any): boolean }
type SchedulerEventName ='onAfterEventDisplay'|'onAfterFolderToggle'|'onAfterLightbox'|'onAfterSchedulerResize'|'onBeforeCollapse'|'onBeforeDrag'|'onBeforeEventChanged'|'onBeforeEventCreated'|'onBeforeEventDelete'|'onBeforeEventDisplay'|'onBeforeEventDragIn'|'onBeforeEventDragOut'|'onBeforeExpand'|'onBeforeExternalDragIn'|'onBeforeFolderToggle'|'onBeforeLightbox'|'onBeforeSectionRender'|'onBeforeTodayDisplayed'|'onBeforeTooltip'|'onBeforeViewChange'|'onCellClick'|'onCellDblClick'|'onClearAll'|'onClick'|'onCollapse'|'onConfirmedBeforeEventDelete'|'onContextMenu'|'onDblClick'|'onDragEnd'|'onEmptyClick'|'onEventAdded'|'onEventCancel'|'onEventChanged'|'onEventCollision'|'onEventCopied'|'onEventCreated'|'onEventCut'|'onEventDeleted'|'onEventDrag'|'onEventDragIn'|'onEventDragOut'|'onEventDropOut'|'onEventIdChange'|'onEventLoading'|'onEventPasted'|'onEventSave'|'onExpand'|'onExternalDragIn'|'onLightbox'|'onLightboxButton'|'onLimitViolation'|'onLoadError'|'onLocationError'|'onMouseDown'|'onMouseMove'|'onOptionsLoad'|'onOptionsLoadFinal'|'onOptionsLoadStart'|'onSaveError'|'onScaleAdd'|'onScaleDblClick'|'onSchedulerReady'|'onSchedulerResize'|'onTemplatesReady'|'onTimelineCreated'|'onViewChange'|'onViewMoreClick'|'onXLE'|'onXLS'|'onXScaleClick'|'onXScaleDblClick'|'onYScaleClick'|'onYScaleDblClick';
interface SchedulerTemplates{
/**
* specifies the date in the header of the view
* @param start the start date of the view
* @param end the end date of the view
*/
agenda_date(start: Date, end: Date): string;
/**
* specifies the text in the second column of the Agenda view
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
agenda_text(start: Date, end: Date, event: any): string;
/**
* specifies the date in the first column of the Agenda view
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
agenda_time(start: Date, end: Date, event: any): string;
/**
* specifies the format of dates that are set by means of API methods. Used to parse incoming dates
* @param date the date which needs formatting
*/
api_date(date: Date): string;
/**
* specifies the format of the date in a cell
* @param date the cell's date
*/
calendar_date(date: Date): string;
/**
* specifies the date in the header of the calendar
* @param date the date which needs formatting
*/
calendar_month(date: Date): string;
/**
* specifies the day name in the week sub-header of the view
* @param date the date which needs formatting
*/
calendar_scale_date(date: Date): string;
/**
* specifies the date format of the lightbox's start and end date inputs
* @param date the date which needs formatting
*/
calendar_time(date: Date): string;
/**
* specifies the date in the header of the Day and Units views
* @param date the date which needs formatting
*/
day_date(date: Date): string;
/**
* specifies the date in the sub-header of the Day view
* @param date the date which needs formatting
*/
day_scale_date(date: Date): string;
/**
* specifies the CSS class that will be applied to the highlighted event's duration on the time scale
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param ev the event's object
*/
drag_marker_class(start: Date, end: Date, ev: any): void;
/**
* specifies the content of the highlighted block on the time scale
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param ev the event's object
*/
drag_marker_content(start: Date, end: Date, ev: any): void;
/**
* specifies the date of an event. Applied to one-day events only
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
event_bar_date(start: Date, end: Date, event: any): string;
/**
* specifies the event's text. Applied to multi-day events only
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event's object
*/
event_bar_text(start: Date, end: Date, event: any): string;
/**
* specifies the CSS class that will be applied to the event's container
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param ev the event's object
*/
event_class(start: Date, end: Date, ev: any): string;
/**
* specifies the time part of the start and end dates of the event. Mostly used by other templates for presenting time periods
* @param date the date which needs formatting
*/
event_date(date: Date): string;
/**
* specifies the event's header
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event's object
*/
event_header(start: Date, end: Date, event: any): string;
/**
* specifies the event's text
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
event_text(start: Date, end: Date, event: any): string;
/**
* specifies the items of the Y-Axis
* @param date the date which needs formatting
*/
hour_scale(date: Date): string;
/**
* specifies the format of requests in the dynamic loading mode
* @param date the date which needs formatting
*/
load_format(date: Date): string;
/**
* specifies the date in the header of the view
* @param start the start date of the view
* @param end the end date of the view
*/
map_date(start: Date, end: Date): string;
/**
* specifies the text in the second column of the view
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
map_text(start: Date, end: Date, event: any): string;
/**
* specifies the date in the first column of the view
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
map_time(start: Date, end: Date, event: any): string;
/**
* specifies the date of the event in the Google Maps popup marker
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
marker_date(start: Date, end: Date, event: any): string;
/**
* specifies the text of the event in the Google Maps popup marker
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
marker_text(start: Date, end: Date, event: any): string;
/**
* specifies the date in the header of the view
* @param date the date which needs formatting
*/
month_date(date: Date): string;
/**
* specifies the CSS class that will be applied to a day cell
* @param date the date which needs formatting
*/
month_date_class(date: Date): string;
/**
* specifies the format of the day in a cell
* @param date the date which needs formatting
*/
month_day(date: Date): string;
/**
* specifies the presentation of the 'View more' link in the cell of the Month view
* @param date the date of a month cell
* @param count the number of events in the cell
*/
month_events_link(date: Date, count: number): string;
/**
* specifies the date format of the X-Axis of the view
* @param date the date which needs formatting
*/
month_scale_date(date: Date): string;
/**
* specifies the content of the pop-up edit form
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
quick_info_content(start: Date, end: Date, event: any): string;
/**
* specifies the date of the pop-up edit form
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
quick_info_date(start: Date, end: Date, event: any): string;
/**
* specifies the title of the pop-up edit form
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
quick_info_title(start: Date, end: Date, event: any): string;
/**
* specifies the drop-down time selector in the lightbox
*/
time_picker(): string;
/**
* specifies the format of start and end dates displayed in the tooltip
* @param date the date which needs formatting
*/
tooltip_date_format(date: Date): string;
/**
* specifies the text of tooltips
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
tooltip_text(start: Date, end: Date, event: any): string;
/**
* specifies the event's text
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
* @param cellDate the date of a day cell that a one-day event or a single occurrence of <br> the recurring event displays in
* @param pos the position of a single occurrence in the recurring event: 'start' - the first occurrence, 'end' - the last occurrence, 'middle' - for remaining occurrences
*/
week_agenda_event_text(start: Date, end: Date, event: any, cellDate: Date, pos: string): string;
/**
* the date of a day cell of the view
* @param date the date which needs formatting
*/
week_agenda_scale_date(date: Date): string;
/**
* specifies the date in the header of the view
* @param start the start date of the view
* @param end the end date of the view
*/
week_date(start: Date, end: Date): string;
/**
* specifies the CSS class that will be applied to a day cell
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
week_date_class(start: Date, end: Date, event: any): string;
/**
* specifies the date in the sub-header of the view
* @param date the date which needs formatting
*/
week_scale_date(date: Date): string;
/**
* a string from an XML file is converted into a date object in conformity with this template
* @param date the string which need to be parsed
*/
xml_date(date: Date): Date;
/**
* a date object is converted into a string in conformity with this template. Used to send data back to the server
* @param date the date which needs formatting
*/
xml_format(date: Date): string;
/**
* specifies the date in the header of the view
* @param date the date which needs formatting
*/
year_date(date: Date): string;
/**
* specifies the month's name in the header of a month block of the view.
* @param date the date which needs formatting
*/
year_month(date: Date): string;
/**
* specifies the day's name in the sub-header of a month block of the view
* @param date the date which needs formatting
*/
year_scale_date(date: Date): string;
/**
* specifies the tooltip over a day cell containing some scheduled event(s)
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
year_tooltip(start: Date, end: Date, event: any): string;
/**
* specifies the lightbox's header
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
lightbox_header(start: Date, end: Date, event: any): string;
/**
* specifies the date in the header of the view
* @param start the start date of the view
* @param end the end date of the view
*/
grid_date(start: Date, end: Date): string;
/**
* specifies the format of dates in columns with id='date'
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param ev the event object
*/
grid_full_date(start: Date, end: Date, ev: any): string;
/**
* specifies the format of dates in columns with id='start_date' or id='end_date'
* @param date the date which needs formatting
*/
grid_single_date(date: Date): string;
/**
* specifies the text in the columns
* @param field_name the column's id
* @param event the event object
*/
grid_field(field_name: string, event: any): string;
/**
* specifies the number of scheduled events in a cell of the view
* @param evs an array of objects of events contained in a cell
* @param date the date of a cell
*/
timeline_cell_value(evs: any[], date: Date): string;
/**
* specifies the CSS class that will be applied to a cell of the view
* @param evs an array of objects of events contained in a cell (defined only in the 'cell' mode)
* @param date the date of a column
* @param section the section object
*/
timeline_cell_class(evs: any[], date: Date, section: any): string;
/**
* specifies the name of a CSS class that will be applied to items of the X-Axis
* @param date the date which needs formatting
*/
timeline_scalex_class(date: Date): string;
/**
* specifies the name of a CSS class that will be applied to items of the second X-Axis
* @param date the date which needs formatting
*/
timeline_second_scalex_class(date: Date): string;
/**
* specifies the name of a CSS class that will be applied to items of the Y-Axis
* @param key the section's id
* @param label the section's label
* @param section the section object that contains the 'key' and 'label' properties
*/
timeline_scaley_class(key: string, label: string, section: any): string;
/**
* specifies items of the Y-Axis
* @param key the section's id (key)
* @param label the section's label
* @param section the section object containing the 'key' and 'label' properties
*/
timeline_scale_label(key: string, label: string, section: any): string;
/**
* specifies the tooltip over a day cell containing some scheduled event(s)
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
timeline_tooltip(start: Date, end: Date, event: any): string;
/**
* specifies the date in the header of the view
* @param date1 the date when an event is scheduled to begin
* @param date2 the date when an event is scheduled to be completed
*/
timeline_date(date1: Date, date2: Date): string;
/**
* specifies items of the X-Axis
* @param date the date which needs formatting
*/
timeline_scale_date(date: Date): string;
/**
* specifies items of the second X-Axis
* @param date the date which needs formatting
*/
timeline_second_scale_date(date: Date): string;
/**
* specifies the date in the header of the view
* @param date the date which needs formatting
*/
units_date(date: Date): string;
/**
* specifies items of the X-Axis
* @param key the unit's id (key)
* @param label the unit's label
* @param unit the unit object containing the 'key' and 'label' properties
*/
units_scale_text(key: string, label: string, unit: any): string;
}
interface SchedulerConfigOptions{
/**
* 'says' to present the numbers of days in the Month view as clickable links that open the related day in the specified view
*/
active_link_view: string;
/**
* sets the date to display events until
*/
agenda_end: Date;
/**
* sets the date to start displaying events from
*/
agenda_start: Date;
/**
* specifies how to display the default error notification in case the XML data loading failed
*/
ajax_error: string|boolean;
/**
* 'says' to show multi-day events in the regular way (as one-day events are displayed)
*/
all_timed: boolean|string;
/**
* sets the date format that will be used by the addEvent() method to parse the start_date, end_date properties in case they are specified as strings
*/
api_date: string;
/**
* enables automatic changing of the end event date after changing the start date
*/
auto_end_date: boolean;
/**
* stores a collection of buttons resided in the left bottom corner of the lightbox
*/
buttons_left: any[];
/**
* stores a collection of buttons resided in the right bottom corner of the lightbox
*/
buttons_right: any[];
/**
* sets the maximum number of events in a cascade
*/
cascade_event_count: number;
/**
* sets the 'cascade' display mode
*/
cascade_event_display: boolean;
/**
* sets the left margin for a cascade of events
*/
cascade_event_margin: number;
/**
* activates/disables checking of limits
*/
check_limits: boolean;
/**
* sets the maximum allowable number of events per time slot
*/
collision_limit: number;
/**
* forces the scheduler container to automatically change its size to show the whole content without scrolling
*/
container_autoresize: boolean;
/**
* sets the date format for the X-Axis of the Week and Units views
*/
day_date: string;
/**
* enables the possibility to create events by double click
*/
dblclick_create: boolean;
/**
* sets the date format used by the templates 'day_date', 'week_date', 'day_scale_date' for setting date in the views' headers
*/
default_date: string;
/**
* sets a timeout (in milliseconds) that wraps the api/scheduler_updateview.md and api/scheduler_setcurrentview.md calls ( that cause re-drawing of the scheduler )
*/
delay_render: number;
/**
* 'says' to use the extended form while creating new events by drag or double click
*/
details_on_create: boolean;
/**
* 'says' to open the lightbox after double clicking on an event
*/
details_on_dblclick: boolean;
/**
* defines whether the marked(blocked) time spans should be highlighted in the scheduler
*/
display_marked_timespans: boolean;
/**
* sets the default background color for the events retrieved by the showEvent() method
*/
displayed_event_color: string;
/**
* sets the default font color for the events retrieved by the showEvent() method
*/
displayed_event_text_color: string;
/**
* enables the possibility to create new events by drag-and-drop
*/
drag_create: boolean;
/**
* highlights the event's duration on the time scale when you drags an event over the scheduler
*/
drag_highlight: boolean;
/**
* restrict dragging events to the calling scheduler from any other scheduler(s)
*/
drag_in: boolean;
/**
* enables the possibility to drag the lightbox by the header
*/
drag_lightbox: boolean;
/**
* enables the possibility to move events by drag-and-drop
*/
drag_move: boolean;
/**
* restrict dragging events from the calling scheduler to any other scheduler(s)
*/
drag_out: boolean;
/**
* enables the possibility to resize events by drag-and-drop
*/
drag_resize: boolean;
/**
* 'says' to open the lightbox while creating new events
*/
edit_on_create: boolean;
/**
* sets the initial duration of events in minutes
*/
event_duration: number;
/**
* sets the minimum value for the hour scale (Y-Axis)
*/
first_hour: number;
/**
* moves views' tabs from the left to the right side
*/
fix_tab_position: boolean;
/**
* enables setting of the event's duration to the full day
*/
full_day: boolean;
/**
* specifies whether events retrieved by the showEvent method should be highlighted while displaying
*/
highlight_displayed_event: boolean;
/**
* sets the time format of Y-Axis. Also used in the default event and lighbox templates for setting the time part.
*/
hour_date: string;
/**
* sets the height of an hour unit in pixels
*/
hour_size_px: number;
/**
* stores a collection of icons visible in the side edit menu of the event's box
*/
icons_edit: any[];
/**
* stores a collection of icons visible in the side selection menu of the event's box
*/
icons_select: any[];
/**
* defines whether the date specified in the 'End by' field should be exclusive or inclusive
*/
include_end_by: boolean;
/**
* disables the keyboard navigation in the scheduler
*/
key_nav: boolean;
/**
* sets the maximum value of the hour scale (Y-Axis)
*/
last_hour: number;
/**
* adds the dotted left border to the scheduler
*/
left_border: boolean;
/**
* specifies the lightbox object
*/
lightbox: any;
/**
* defines the lightbox's behavior, when the user opens the lightbox to edit a recurring event
*/
lightbox_recurring: string;
/**
* denies to drag events out of the visible area of the scheduler
*/
limit_drag_out: boolean;
/**
* sets the right border of the allowable date range
*/
limit_end: Date;
/**
* sets the left border of the allowable date range
*/
limit_start: Date;
/**
* sets the max and min values of the time selector in the lightbox to the values of the 'last_hour' and 'first_hour' options
*/
limit_time_select: boolean;
/**
* limits the date period during which the user can view the events
*/
limit_view: boolean;
/**
* sets the format of server request parameters 'from', 'to' in case of dynamic loading
*/
load_date: string;
/**
* sets the date to display events until
*/
map_end: Date;
/**
* sets the position that will be displayed on the map in case the event's location can't be identified
*/
map_error_position: any;
/**
* the maximum width of the Google Maps's popup marker in the Map view
*/
map_infowindow_max_width: number;
/**
* sets the initial position of the map
*/
map_initial_position: any;
/**
* sets the initial zoom of Google Maps in the Map view
*/
map_initial_zoom: number;
/**
* activates attempts to resolve the event's location, if the database doesn't have the event's coordinates stored
*/
map_resolve_event_location: boolean;
/**
* enables/disables prompts asking the user to share his location for displaying on the map
*/
map_resolve_user_location: boolean;
/**
* sets the date to start displaying events from
*/
map_start: Date;
/**
* sets the type of Google Maps
*/
map_type: any;
/**
* sets the zoom that will be used to show the user's location, if the user agrees to the browser's offer to show it
*/
map_zoom_after_resolve: number;
/**
* enables/disables the marker displaying the current time
*/
mark_now: boolean;
/**
* sets the maximum number of events displayable in a cell
*/
max_month_events: number;
/**
* specifies the mini calendar object
*/
minicalendar: any;
/**
* sets the format for the header of the Month view
*/
month_date: string;
/**
* sets the format for the day in the cells of the Month and Year views
*/
month_day: string;
/**
* sets the minimum height of cells in the Month view
*/
month_day_min_height: number;
/**
* enables rendering of multi-day events
*/
multi_day: boolean;
/**
* sets the height of the area that displays multi-day events
*/
multi_day_height_limit: number|boolean;
/**
* enables the possibility to render the same events in several sections of the Timeline or Units view
*/
multisection: boolean;
/**
* specifies whether while dragging events that assigned to several sections of the Timeline or Units view, all instances should be dragged at once ('true') or just the selected one ('false')
*/
multisection_shift_all: boolean;
/**
* sets the date for the current-time marker in the Limit extension (enabled by the configuration - mark_now)
*/
now_date: Date;
/**
* allows working with recurring events independently of time zones
*/
occurrence_timestamp_in_utc: boolean;
/**
* defines the 'saving' behaviour for the case, when the user edits the event's text directly in the event's box
*/
positive_closing: boolean;
/**
* preserves the visible length of an event while dragging along a non-linear time scale
*/
preserve_length: boolean;
/**
* cancels preserving of the current scroll position while navigating between dates of the same view
*/
preserve_scroll: boolean;
/**
* enables/disables caching of GET requests in the browser
*/
prevent_cache: boolean;
/**
* defines whether the event form will appear from the left/right side of the screen or near the selected event
*/
quick_info_detached: boolean;
/**
* activates the read-only mode for the scheduler
*/
readonly: boolean;
/**
* activates the read-only mode for the lightbox
*/
readonly_form: boolean;
/**
* specifies working days that will affect the recurring event when the user selects the ""Every workday" option in the lightbox
*/
recurring_workdays: any[];
/**
* sets the date format of the 'End by' field in the 'recurring' lightbox
*/
repeat_date: string;
/**
* prevents including past days to events with the 'weekly' recurrence
*/
repeat_precise: boolean;
/**
* enables the possibility to resize multi-day events in the Month view by drag-and-drop
*/
resize_month_events: boolean;
/**
* enables the possibility to resize single-day events in the Month view by drag-n-drop
*/
resize_month_timed: boolean;
/**
* sets the initial position of the vertical scroll in the scheduler (an hour in the 24-hour clock format)
*/
scroll_hour: number;
/**
* specifies the delimeter that will be used to separate several sections/units in the related data property of the event
*/
section_delemiter: string;
/**
* shows/hides the select bar in the event's box
*/
select: boolean;
/**
* allows preventing short events from overlapping
*/
separate_short_events: boolean;
/**
* enables converting server-side dates from UTC to a local time zone (and backward) while sending data to the server
*/
server_utc: boolean;
/**
* enables showing a progress/spinner while data is loading (useful for dynamic loading)
*/
show_loading: boolean;
/**
* activates/disables the 'quick_info' extension (pop-up task's details form)
*/
show_quick_info: boolean;
/**
* sets the start day of weeks
*/
start_on_monday: boolean;
/**
* sets the minimum step (in minutes) for event's time values
*/
time_step: number;
/**
* enables/disables the touch support in the scheduler
*/
touch: boolean|string;
/**
* defines the time period in milliseconds that is used to differ the long touch gesture from the scroll gesture
*/
touch_drag: number|boolean;
/**
* enables/disables prompting messages in the right top corner of the screen
*/
touch_tip: boolean;
/**
* disables dhtmxlScheduler's tooltips on the touch devices
*/
touch_tooltip: boolean;
/**
* updates the mode when the scheduler fully repaints itself on any action
*/
update_render: boolean;
/**
* 'says' events to occupy the whole width of the cell
*/
use_select_menu_space: boolean;
/**
* sets the format of the date in the sub-header of the Month view
*/
week_date: string;
/**
* enables/disables displaying the standard (wide) lightbox instead of the short one
*/
wide_form: boolean;
/**
* sets the date format that is used to parse data from the data set
*/
xml_date: string;
/**
* sets the number of rows in the Year view
*/
year_x: number;
/**
* sets the number of columns in the Year view
*/
year_y: number;
}
interface SchedulerDateHelpers{
add(origin: Date, count: number, unit: string): Date;