-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart.scheduler.js
2356 lines (2356 loc) · 352 KB
/
smart.scheduler.js
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
import * as tslib_1 from "tslib";
import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';
import { BaseElement, Smart } from './smart.element';
export { Smart } from './smart.element';
let SchedulerComponent = class SchedulerComponent extends BaseElement {
constructor(ref) {
super(ref);
this.eventHandlers = [];
/** @description This event is triggered when a batch update was started after executing the beginUpdate method.
* @param event. The custom event. */
this.onBeginUpdate = new EventEmitter();
/** @description This event is triggered when a batch update was ended from after executing the endUpdate method.
* @param event. The custom event. */
this.onEndUpdate = new EventEmitter();
/** @description This event is triggered when a new cell is selected/unselected.
* @param event. The custom event. Custom event was created with: event.detail( value, oldValue)
* value - The new selected Date.
* oldValue - The previously selected Date.
*/
this.onChange = new EventEmitter();
/** @description This event is triggered when an Event has been updated/inserted/removed/dragged/resized or an exception of a repeating event has been added/updated/removed.
* @param event. The custom event. Custom event was created with: event.detail( item, type)
* item - An object that represents the actual item with it's attributes.
* type - The type of change that is being done to the item.
*/
this.onItemChange = new EventEmitter();
/** @description This event is triggered when an Event is going to be updated/inserted/removed. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( item, type)
* item - An object that represents the actual item with it's attributes.
* type - The type of change that is going to be made to the item (e.g. 'inserting', 'removing', 'updating', 'exceptionInserting', 'exceptionUpdating', 'exceptionRemoving').
*/
this.onItemChanging = new EventEmitter();
/** @description This event is triggered when en event, event item or a context menu item is clicked.
* @param event. The custom event. Custom event was created with: event.detail( item, type, itemObj)
* item - The HTMLElement for the event.
* type - The type of item that is clicked. The possible values are: <ul><li>event - when an event item is clicked.</li><li>context - when a context menu item is clicked.</li></ul>.
* itemObj - The event object.
*/
this.onItemClick = new EventEmitter();
/** @description This event is triggered when an Event is inserted.
* @param event. The custom event. Custom event was created with: event.detail( item)
* item - An object that represents the actual item with it's attributes.
*/
this.onItemInsert = new EventEmitter();
/** @description This event is triggered when an Event is removed.
* @param event. The custom event. Custom event was created with: event.detail( item)
* item - An object that represents the actual item with it's attributes.
*/
this.onItemRemove = new EventEmitter();
/** @description This event is triggered when an Event is updated.
* @param event. The custom event. Custom event was created with: event.detail( type, item)
* type - The type of item that has been modified.
* item - An object that represents the actual item with it's attributes.
*/
this.onItemUpdate = new EventEmitter();
/** @description This event is triggered when the view is changed via user interaction.
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
* oldValue - The value of the previously selected view.
* value - The value of the new selected view.
*/
this.onViewChange = new EventEmitter();
/** @description This event is triggered before the view is changed via user interaction. The view change action can be canceled if event.preventDefault() is called on the event.
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
* oldValue - The value of the previously selected view.
* value - The value of the new selected view.
*/
this.onViewChanging = new EventEmitter();
/** @description This event is triggered when a shortcut key for an event is pressed. By default only 'Delete' key is used.
* @param event. The custom event. Custom event was created with: event.detail( key, target, eventObj)
* key - The shortcut key that was pressed.
* target - The event target (HTMLElement).
* eventObj - The scheduler Event object that affected by the keypress.
*/
this.onEventShortcutKey = new EventEmitter();
/** @description This event is triggered when the 'dateCurrent' property is changed. This can be caused by navigating to a different date.
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
* oldValue - The previous current date that was in view.
* value - The current date in view.
*/
this.onDateChange = new EventEmitter();
/** @description This event is triggered when dragging of an event begins. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is going to be dragged.
* item - The scheduler Event object that is going to be dragged.
* itemDateRange - The start/end dates for the Scheduler Event.
* originalEvent - The original event object.
*/
this.onDragStart = new EventEmitter();
/** @description This event is triggered when dragging of an event finishes.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is dragged.
* item - The scheduler Event object that is dragged.
* itemDateRange - The new start/end dates for the dragged Scheduler Event.
* originalEvent - The original event object.
*/
this.onDragEnd = new EventEmitter();
/** @description This event is triggered when the user drops an item over a cell.
* @param event. The custom event. Custom event was created with: event.detail( target, date, allDay)
* target - The HTMLElement that corresponds to the event that is dragged.
* date - The cell's date under the pointer.
* allDay - Boolean value, which is true when the cell under the pointer is all day cell.
*/
this.onDropoverCell = new EventEmitter();
/** @description This event is triggered when resizing of a task starts. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is going to be resized.
* item - The scheduler Event object that is going to be resized.
* itemDateRange - The start/end dates for Scheduler Event that is going to be resized.
* originalEvent - The original event object.
*/
this.onResizeStart = new EventEmitter();
/** @description This event is triggered when the resizing of an event finishes.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is resized.
* item - The scheduler Event object that is resized.
* itemDateRange - The new start/end dates for the resized Scheduler Event.
* originalEvent - The original event object.
*/
this.onResizeEnd = new EventEmitter();
/** @description This event is triggered when the user starts top open the event dialog window. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, type, eventObj)
* target - The dialog window that is opening.
* item - The event object that is going to be edited.
* type - The type of window that is going to open. Two window types are available, the dafault which is an empty string ( does not have a type) and 'confirm' which is displayed when clicked on a repeating event.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogOpening = new EventEmitter();
/** @description This event is triggered when the user opens the event dialog window.
* @param event. The custom event. Custom event was created with: event.detail( target, editors, item, eventObj)
* target - The dialog window that is opened.
* editors - An object containing all event editors that are present inside the window. This property is undefined when the window is of type 'confirm', because confirm windows do not contain editors.
* item - The event object that is being edited.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogOpen = new EventEmitter();
/** @description This event is triggered when the user closes the event dialog window.
* @param event. The custom event. Custom event was created with: event.detail( target, editors, item, eventObj)
* target - The dialog window that is closed.
* editors - An object containing all event editors that are present inside the window. This property is undefined when the window is of type 'confirm', because confirm windows do not contain editors.
* item - The event object that is being edited.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogClose = new EventEmitter();
/** @description This event is triggered when the user is about to close the event dialog window. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, type, eventObj)
* target - The dialog window that is closing.
* item - The event object that is edited.
* type - The type of window that is going to be closed. Two window types are available, the dafault which is an empty string ( does not have a type) and 'confirm' which is displayed when clicked on a repeating event.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogClosing = new EventEmitter();
/** @description This event is triggered when the user begins to open the context menu on a timeline cell or an event element. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuOpening = new EventEmitter();
/** @description This event is triggered when the context menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuOpen = new EventEmitter();
/** @description This event is triggered when the context menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuClose = new EventEmitter();
/** @description This event is triggered when the user is about to close the context menu. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuClosing = new EventEmitter();
/** @description This event is triggered when the event menu is about to open. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuOpening = new EventEmitter();
/** @description This event is triggered when the event menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuOpen = new EventEmitter();
/** @description This event is triggered when the event menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuClose = new EventEmitter();
/** @description This event is triggered when the evet menu is about to close. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuClosing = new EventEmitter();
/** @description This event is triggered when the date selection menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onDateMenuOpen = new EventEmitter();
/** @description This event is triggered when the date selection menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onDateMenuClose = new EventEmitter();
/** @description This event is triggered when the view selection menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onViewMenuOpen = new EventEmitter();
/** @description This event is triggered when the view selection menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onViewMenuClose = new EventEmitter();
/** @description This event is triggered when a notification is opened.
* @param event. The custom event. Custom event was created with: event.detail( instance)
* instance - The toast item instance that is opened.
*/
this.onNotificationOpen = new EventEmitter();
/** @description This event is triggered when a notification is closed.
* @param event. The custom event. Custom event was created with: event.detail( instance)
* instance - The toast item instance that is closed.
*/
this.onNotificationClose = new EventEmitter();
this.nativeElement = ref.nativeElement;
}
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties = {}) {
this.nativeElement = document.createElement('smart-scheduler');
for (let propertyName in properties) {
this.nativeElement[propertyName] = properties[propertyName];
}
return this.nativeElement;
}
/** @description Determines the scroll speed while dragging an event. */
get autoScrollStep() {
return this.nativeElement ? this.nativeElement.autoScrollStep : undefined;
}
set autoScrollStep(value) {
this.nativeElement ? this.nativeElement.autoScrollStep = value : undefined;
}
/** @description Determines whether the all day cells in Day and Week views automatically change their height depending on the events count in these cells. */
get autoHeightAllDayCells() {
return this.nativeElement ? this.nativeElement.autoHeightAllDayCells : undefined;
}
set autoHeightAllDayCells(value) {
this.nativeElement ? this.nativeElement.autoHeightAllDayCells = value : undefined;
}
/** @description Defines an array of objects with start and end fields, where start and end are Date objects. For example: [{ 'start': '2022-10-25T12:00.000Z', 'end': '2022-10-25T13:00.000Z' }]. */
get available() {
return this.nativeElement ? this.nativeElement.available : undefined;
}
set available(value) {
this.nativeElement ? this.nativeElement.available = value : undefined;
}
/** @description Determines the color scheme for the event background selector in the event window editor. */
get colorScheme() {
return this.nativeElement ? this.nativeElement.colorScheme : undefined;
}
set colorScheme(value) {
this.nativeElement ? this.nativeElement.colorScheme = value : undefined;
}
/** @description Enables/Disables the current time indicator. Current time indicator shows the current time in the appropriate view cells. */
get currentTimeIndicator() {
return this.nativeElement ? this.nativeElement.currentTimeIndicator : undefined;
}
set currentTimeIndicator(value) {
this.nativeElement ? this.nativeElement.currentTimeIndicator = value : undefined;
}
/** @description Determines the refresh interval in seconds for the currentTimeIndicator. */
get currentTimeIndicatorInterval() {
return this.nativeElement ? this.nativeElement.currentTimeIndicatorInterval : undefined;
}
set currentTimeIndicatorInterval(value) {
this.nativeElement ? this.nativeElement.currentTimeIndicatorInterval = value : undefined;
}
/** @description Determines the context menu items that are visible when the Context Menu is opened. */
get contextMenuDataSource() {
return this.nativeElement ? this.nativeElement.contextMenuDataSource : undefined;
}
set contextMenuDataSource(value) {
this.nativeElement ? this.nativeElement.contextMenuDataSource = value : undefined;
}
/** @description Determines whether the clipboard shortcuts for copy/paste/cut action of events are visible in the Scheduler context menu or not. */
get contextMenuClipboardActions() {
return this.nativeElement ? this.nativeElement.contextMenuClipboardActions : undefined;
}
set contextMenuClipboardActions(value) {
this.nativeElement ? this.nativeElement.contextMenuClipboardActions = value : undefined;
}
/** @description Allows to customize the content of the event elements. It can be an HTMLTemplateElement that will be applied to all events or it's id as a string or a function that will be called for each event with the following parameters: eventContent - the content holder for the event,eventObj - the event object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get eventTemplate() {
return this.nativeElement ? this.nativeElement.eventTemplate : undefined;
}
set eventTemplate(value) {
this.nativeElement ? this.nativeElement.eventTemplate = value : undefined;
}
/** @description Allows to customize the content of the event collector elements. It can be an HTMLTemplateElement that will be applied to all events or it's id as a string or a function that will be called for each event with the following parameters: eventContent - the content holder for the event,eventObj - the event object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get eventCollectorTemplate() {
return this.nativeElement ? this.nativeElement.eventCollectorTemplate : undefined;
}
set eventCollectorTemplate(value) {
this.nativeElement ? this.nativeElement.eventCollectorTemplate = value : undefined;
}
/** @description Determines how the events inside the Scheduler are rendered.classic - the events are arranged next to each other and try to fit inside the cells.modern - the events obey the CSS property that determines their size and if there's not enough space inside the cell for all events to appear, an event collector is created to hold the rest of the events. On mobile phones only collectors are created. */
get eventRenderMode() {
return this.nativeElement ? this.nativeElement.eventRenderMode : undefined;
}
set eventRenderMode(value) {
this.nativeElement ? this.nativeElement.eventRenderMode = value : undefined;
}
/** @description Allows to customize the content of the event menu items (tooltip). When clicked on an event element an event menu with details opens. It can be an HTMLTemplateElement that will be applied to all events or it's id as a string or a function that will be called for each event with the following parameters: eventContent - the content holder for the event,eventObj - the event object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get eventTooltipTemplate() {
return this.nativeElement ? this.nativeElement.eventTooltipTemplate : undefined;
}
set eventTooltipTemplate(value) {
this.nativeElement ? this.nativeElement.eventTooltipTemplate = value : undefined;
}
/** @description Allows to customize the content of the timeline cells. It can be an HTMLTemplateElement that will be applied to all cells or it's id as a string or a function that will be called for each cell with the following parameters: cellContent - the content holder for the cell,cellDate - the cell date.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the value of the cell. */
get cellTemplate() {
return this.nativeElement ? this.nativeElement.cellTemplate : undefined;
}
set cellTemplate(value) {
this.nativeElement ? this.nativeElement.cellTemplate = value : undefined;
}
/** @description Determines the currently visible date for the Scheduler. */
get dateCurrent() {
return this.nativeElement ? this.nativeElement.dateCurrent : undefined;
}
set dateCurrent(value) {
this.nativeElement ? this.nativeElement.dateCurrent = value : undefined;
}
/** @description Sets the Schedulers's Data Export options. */
get dataExport() {
return this.nativeElement ? this.nativeElement.dataExport : undefined;
}
set dataExport(value) {
this.nativeElement ? this.nativeElement.dataExport = value : undefined;
}
/** @description Determines the events that will be loaded inside the Timeline. Each event represents an object that should contain the following properties: */
get dataSource() {
return this.nativeElement ? this.nativeElement.dataSource : undefined;
}
set dataSource(value) {
this.nativeElement ? this.nativeElement.dataSource = value : undefined;
}
/** @description A callback that can be used to customize the text inside the date selector located in the header. The callback has one parameter - the current date. */
get dateSelectorFormatFunction() {
return this.nativeElement ? this.nativeElement.dateSelectorFormatFunction : undefined;
}
set dateSelectorFormatFunction(value) {
this.nativeElement ? this.nativeElement.dateSelectorFormatFunction = value : undefined;
}
/** @description Determines the day format of the dates in the timeline. */
get dayFormat() {
return this.nativeElement ? this.nativeElement.dayFormat : undefined;
}
set dayFormat(value) {
this.nativeElement ? this.nativeElement.dayFormat = value : undefined;
}
/** @description Enables or disables the element. */
get disabled() {
return this.nativeElement ? this.nativeElement.disabled : undefined;
}
set disabled(value) {
this.nativeElement ? this.nativeElement.disabled = value : undefined;
}
/** @description Disables auto scrolling of the timeline while dragging/resizing an event. */
get disableAutoScroll() {
return this.nativeElement ? this.nativeElement.disableAutoScroll : undefined;
}
set disableAutoScroll(value) {
this.nativeElement ? this.nativeElement.disableAutoScroll = value : undefined;
}
/** @description Disables dragging of events. */
get disableDrag() {
return this.nativeElement ? this.nativeElement.disableDrag : undefined;
}
set disableDrag(value) {
this.nativeElement ? this.nativeElement.disableDrag = value : undefined;
}
/** @description Disables dropping of events. */
get disableDrop() {
return this.nativeElement ? this.nativeElement.disableDrop : undefined;
}
set disableDrop(value) {
this.nativeElement ? this.nativeElement.disableDrop = value : undefined;
}
/** @description Disables resizing of events. */
get disableResize() {
return this.nativeElement ? this.nativeElement.disableResize : undefined;
}
set disableResize(value) {
this.nativeElement ? this.nativeElement.disableResize = value : undefined;
}
/** @description Disables the cell selection. */
get disableSelection() {
return this.nativeElement ? this.nativeElement.disableSelection : undefined;
}
set disableSelection(value) {
this.nativeElement ? this.nativeElement.disableSelection = value : undefined;
}
/** @description Disables the window editor for the events. */
get disableWindowEditor() {
return this.nativeElement ? this.nativeElement.disableWindowEditor : undefined;
}
set disableWindowEditor(value) {
this.nativeElement ? this.nativeElement.disableWindowEditor = value : undefined;
}
/** @description Disables the context menu of the events and cells. */
get disableContextMenu() {
return this.nativeElement ? this.nativeElement.disableContextMenu : undefined;
}
set disableContextMenu(value) {
this.nativeElement ? this.nativeElement.disableContextMenu = value : undefined;
}
/** @description Disables the event menu that appears when an event/collector has been clicked. */
get disableEventMenu() {
return this.nativeElement ? this.nativeElement.disableEventMenu : undefined;
}
set disableEventMenu(value) {
this.nativeElement ? this.nativeElement.disableEventMenu = value : undefined;
}
/** @description Disables the view menu that allows to select the current Scheduler view. */
get disableViewMenu() {
return this.nativeElement ? this.nativeElement.disableViewMenu : undefined;
}
set disableViewMenu(value) {
this.nativeElement ? this.nativeElement.disableViewMenu = value : undefined;
}
/** @description Disables the date menu that allows to select the current Scheduler date. */
get disableDateMenu() {
return this.nativeElement ? this.nativeElement.disableDateMenu : undefined;
}
set disableDateMenu(value) {
this.nativeElement ? this.nativeElement.disableDateMenu = value : undefined;
}
/** @description A callback that can be used to customize the drag feedback that appears when an event is dragged. */
get dragFeedbackFormatFunction() {
return this.nativeElement ? this.nativeElement.dragFeedbackFormatFunction : undefined;
}
set dragFeedbackFormatFunction(value) {
this.nativeElement ? this.nativeElement.dragFeedbackFormatFunction = value : undefined;
}
/** @description Determines the offset for the drag feedback from the pointer. */
get dragOffset() {
return this.nativeElement ? this.nativeElement.dragOffset : undefined;
}
set dragOffset(value) {
this.nativeElement ? this.nativeElement.dragOffset = value : undefined;
}
/** @description Determines the filtering condition for the events.The filter property takes an array of objects or a function. Each object represents a single filtering condition with the following attributes: name - the name of the Scheduler event property that will be filtered by.value - the filtering condition value. The value will be used to compare the events based on the filterMode, for example: [{ name: 'price', value: 25 }]. The value can also be a function. The function accepts a single arguemnt - the value that corresponds to the filtered attribute. The function allows to apply custom condition that is different from the default filter modes. It should return true ( if the evnet passes the filtering condition ) or false ( if the event does not meet the filtering condition ). Here's an example: [{ name: 'roomId', value: (id) => ['2', '3'].indexOf(id + '') > -1 }]. In the example the events that do not have a 'roomId' property that is equal to '2' or '3' will be filtered out.. If a function is set to the filter property instead, it allows to completely customize the filtering logic. The function passes a single argument - each Scheduler event that will be displayed. The function should return true ( if the condition is met ) or false ( if not ). */
get filter() {
return this.nativeElement ? this.nativeElement.filter : undefined;
}
set filter(value) {
this.nativeElement ? this.nativeElement.filter = value : undefined;
}
/** @description Determines whether Scheduler's filtering is enabled or not. */
get filterable() {
return this.nativeElement ? this.nativeElement.filterable : undefined;
}
set filterable(value) {
this.nativeElement ? this.nativeElement.filterable = value : undefined;
}
/** @description Determines the filter mode. */
get filterMode() {
return this.nativeElement ? this.nativeElement.filterMode : undefined;
}
set filterMode(value) {
this.nativeElement ? this.nativeElement.filterMode = value : undefined;
}
/** @description A getter that returns an array of all Scheduler events. */
get events() {
return this.nativeElement ? this.nativeElement.events : undefined;
}
set events(value) {
this.nativeElement ? this.nativeElement.events = value : undefined;
}
/** @description Determines the first day of week for the Scheduler. By default it's Sunday. */
get firstDayOfWeek() {
return this.nativeElement ? this.nativeElement.firstDayOfWeek : undefined;
}
set firstDayOfWeek(value) {
this.nativeElement ? this.nativeElement.firstDayOfWeek = value : undefined;
}
/** @description Allows to customize the footer of the Scheduler. It can be an HTMLTemplateElement, it's id as a string or a function with the following parameters: footerContainer - the footer container.. */
get footerTemplate() {
return this.nativeElement ? this.nativeElement.footerTemplate : undefined;
}
set footerTemplate(value) {
this.nativeElement ? this.nativeElement.footerTemplate = value : undefined;
}
/** @description Determines whether the events will be grouped by date. */
get groupByDate() {
return this.nativeElement ? this.nativeElement.groupByDate : undefined;
}
set groupByDate(value) {
this.nativeElement ? this.nativeElement.groupByDate = value : undefined;
}
/** @description Determines the grouping orientation. */
get groupOrientation() {
return this.nativeElement ? this.nativeElement.groupOrientation : undefined;
}
set groupOrientation(value) {
this.nativeElement ? this.nativeElement.groupOrientation = value : undefined;
}
/** @description Allows to customize the content of the group cells that are visible inside the header. It can be an HTMLTemplateElement that will be applied to all cells or it's id as a string or a function that will be called for each group cell with the following parameters: cellContent - the content holder for the group cell.cellObj - the group cell object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get groupTemplate() {
return this.nativeElement ? this.nativeElement.groupTemplate : undefined;
}
set groupTemplate(value) {
this.nativeElement ? this.nativeElement.groupTemplate = value : undefined;
}
/** @description Determines the resources that the events are grouped by. */
get groups() {
return this.nativeElement ? this.nativeElement.groups : undefined;
}
set groups(value) {
this.nativeElement ? this.nativeElement.groups = value : undefined;
}
/** @description Determines the end hour that will be displayed in 'day' and 'week' views. */
get hourEnd() {
return this.nativeElement ? this.nativeElement.hourEnd : undefined;
}
set hourEnd(value) {
this.nativeElement ? this.nativeElement.hourEnd = value : undefined;
}
/** @description Determines the start hour that will be displayed in 'day' and 'week' views. */
get hourStart() {
return this.nativeElement ? this.nativeElement.hourStart : undefined;
}
set hourStart(value) {
this.nativeElement ? this.nativeElement.hourStart = value : undefined;
}
/** @description Determines the formatting of hours inside the element. */
get hourFormat() {
return this.nativeElement ? this.nativeElement.hourFormat : undefined;
}
set hourFormat(value) {
this.nativeElement ? this.nativeElement.hourFormat = value : undefined;
}
/** @description Allows to customize the header of the Scheduler. It can be an HTMLTemplateElement, it's id as a string or a function with the following parameters: headerContent - the header container.. */
get headerTemplate() {
return this.nativeElement ? this.nativeElement.headerTemplate : undefined;
}
set headerTemplate(value) {
this.nativeElement ? this.nativeElement.headerTemplate = value : undefined;
}
/** @description Determines the position of the Date selector inside the Header of the element. */
get headerDatePosition() {
return this.nativeElement ? this.nativeElement.headerDatePosition : undefined;
}
set headerDatePosition(value) {
this.nativeElement ? this.nativeElement.headerDatePosition = value : undefined;
}
/** @description Determines the styling of the Header navigation controls. */
get headerNavigationStyle() {
return this.nativeElement ? this.nativeElement.headerNavigationStyle : undefined;
}
set headerNavigationStyle(value) {
this.nativeElement ? this.nativeElement.headerNavigationStyle = value : undefined;
}
/** @description Determines the position of the view selector control inside the Header of the element. */
get headerViewPosition() {
return this.nativeElement ? this.nativeElement.headerViewPosition : undefined;
}
set headerViewPosition(value) {
this.nativeElement ? this.nativeElement.headerViewPosition = value : undefined;
}
/** @description Determines whether the 'All Day' container with the all day events is hidden or not. */
get hideAllDay() {
return this.nativeElement ? this.nativeElement.hideAllDay : undefined;
}
set hideAllDay(value) {
this.nativeElement ? this.nativeElement.hideAllDay = value : undefined;
}
/** @description Determines whether the days set by 'nonworkingDays' property are hidden or not. */
get hideNonworkingWeekdays() {
return this.nativeElement ? this.nativeElement.hideNonworkingWeekdays : undefined;
}
set hideNonworkingWeekdays(value) {
this.nativeElement ? this.nativeElement.hideNonworkingWeekdays = value : undefined;
}
/** @description Determines whether other month days are visible when view is set to month. When enabled, events that start on other month days are not displayed and the cells that represent such days do not allow the creation of new events on them. Also dragging and droping an event on other month days is not allowed. Reszing is also affected. Events can end on other month days, but cannot start on one. */
get hideOtherMonthDays() {
return this.nativeElement ? this.nativeElement.hideOtherMonthDays : undefined;
}
set hideOtherMonthDays(value) {
this.nativeElement ? this.nativeElement.hideOtherMonthDays = value : undefined;
}
/** @description Determines whether the 'Today' button is hidden or not. */
get hideTodayButton() {
return this.nativeElement ? this.nativeElement.hideTodayButton : undefined;
}
set hideTodayButton(value) {
this.nativeElement ? this.nativeElement.hideTodayButton = value : undefined;
}
/** @description Determines whether the checkable items in the view selection menu are hidden or not. */
get hideViewMenuCheckableItems() {
return this.nativeElement ? this.nativeElement.hideViewMenuCheckableItems : undefined;
}
set hideViewMenuCheckableItems(value) {
this.nativeElement ? this.nativeElement.hideViewMenuCheckableItems = value : undefined;
}
/** @description Determines whether the weekend days are hidden or not. */
get hideWeekend() {
return this.nativeElement ? this.nativeElement.hideWeekend : undefined;
}
set hideWeekend(value) {
this.nativeElement ? this.nativeElement.hideWeekend = value : undefined;
}
/** @description Determines the location of the legend inside the Scheduler. By default the location is inside the footer but it can also reside in the header. */
get legendLocation() {
return this.nativeElement ? this.nativeElement.legendLocation : undefined;
}
set legendLocation(value) {
this.nativeElement ? this.nativeElement.legendLocation = value : undefined;
}
/** @description Determines the position of the legend. By default it's positioned to the near side but setting it to 'far' will change that. */
get legendPosition() {
return this.nativeElement ? this.nativeElement.legendPosition : undefined;
}
set legendPosition(value) {
this.nativeElement ? this.nativeElement.legendPosition = value : undefined;
}
/** @description Determines the layout of the legend items. */
get legendLayout() {
return this.nativeElement ? this.nativeElement.legendLayout : undefined;
}
set legendLayout(value) {
this.nativeElement ? this.nativeElement.legendLayout = value : undefined;
}
/** @description Determines the number of items when the legend switches automatically from horizontal list to menu. */
get legendLayoutMenuBreakpoint() {
return this.nativeElement ? this.nativeElement.legendLayoutMenuBreakpoint : undefined;
}
set legendLayoutMenuBreakpoint(value) {
this.nativeElement ? this.nativeElement.legendLayoutMenuBreakpoint = value : undefined;
}
/** @description Determines the mouse wheel step. When this property is set to a positive number, the scroll step with mouse wheel or trackpad will depend on the property value. */
get mouseWheelStep() {
return this.nativeElement ? this.nativeElement.mouseWheelStep : undefined;
}
set mouseWheelStep(value) {
this.nativeElement ? this.nativeElement.mouseWheelStep = value : undefined;
}
/** @description Determines weather or not horizontal scrollbar is shown. */
get horizontalScrollBarVisibility() {
return this.nativeElement ? this.nativeElement.horizontalScrollBarVisibility : undefined;
}
set horizontalScrollBarVisibility(value) {
this.nativeElement ? this.nativeElement.horizontalScrollBarVisibility = value : undefined;
}
/** @description Determines the language of the Scheduler. */
get locale() {
return this.nativeElement ? this.nativeElement.locale : undefined;
}
set locale(value) {
this.nativeElement ? this.nativeElement.locale = value : undefined;
}
/** @description Detetmines the maximum view date for the Scheduler. */
get max() {
return this.nativeElement ? this.nativeElement.max : undefined;
}
set max(value) {
this.nativeElement ? this.nativeElement.max = value : undefined;
}
/** @description Detetmines the maximum number of events per Scheduler cell. By default this property is null which means that the number of events per cell is automatically determined by the size of the events. */
get maxEventsPerCell() {
return this.nativeElement ? this.nativeElement.maxEventsPerCell : undefined;
}
set maxEventsPerCell(value) {
this.nativeElement ? this.nativeElement.maxEventsPerCell = value : undefined;
}
/** @description Detetmines the minimum view date for the Scheduler. */
get min() {
return this.nativeElement ? this.nativeElement.min : undefined;
}
set min(value) {
this.nativeElement ? this.nativeElement.min = value : undefined;
}
/** @description Sets or gets an object specifying strings used in the element that can be localized. Used in conjunction with the property locale. */
get messages() {
return this.nativeElement ? this.nativeElement.messages : undefined;
}
set messages(value) {
this.nativeElement ? this.nativeElement.messages = value : undefined;
}
/** @description Determines the minute formatting inside the Scheduler. */
get minuteFormat() {
return this.nativeElement ? this.nativeElement.minuteFormat : undefined;
}
set minuteFormat(value) {
this.nativeElement ? this.nativeElement.minuteFormat = value : undefined;
}
/** @description Determines the month name formatting inside the Scheduler. */
get monthFormat() {
return this.nativeElement ? this.nativeElement.monthFormat : undefined;
}
set monthFormat(value) {
this.nativeElement ? this.nativeElement.monthFormat = value : undefined;
}
/** @description Determines the nonworking days of the week from 0 to 6, where 0 is the first day of the week and 6 is the last day. Nonworking days will be colored differently inside the Timeline. The color is determined by a CSS variable. */
get nonworkingDays() {
return this.nativeElement ? this.nativeElement.nonworkingDays : undefined;
}
set nonworkingDays(value) {
this.nativeElement ? this.nativeElement.nonworkingDays = value : undefined;
}
/** @description Determines the nonworking hours of the day. Hours are represented as numbers inside an array, however ranges of hours can be defined as an array with starting and ending hour separated by a comma. In the timline the cells that represent nonworking days are colored differently from the rest. */
get nonworkingHours() {
return this.nativeElement ? this.nativeElement.nonworkingHours : undefined;
}
set nonworkingHours(value) {
this.nativeElement ? this.nativeElement.nonworkingHours = value : undefined;
}
/** @description Determines the interval (in seconds) at which the element will check for notifications. */
get notificationInterval() {
return this.nativeElement ? this.nativeElement.notificationInterval : undefined;
}
set notificationInterval(value) {
this.nativeElement ? this.nativeElement.notificationInterval = value : undefined;
}
/** @description Determines the visibility of the resize handles. */
get resizeHandlesVisibility() {
return this.nativeElement ? this.nativeElement.resizeHandlesVisibility : undefined;
}
set resizeHandlesVisibility(value) {
this.nativeElement ? this.nativeElement.resizeHandlesVisibility = value : undefined;
}
/** @description Determines the rate at which the element will refresh it's content on element resize. By default it's refresh immediately. This property is used for element resize throttling */
get resizeInterval() {
return this.nativeElement ? this.nativeElement.resizeInterval : undefined;
}
set resizeInterval(value) {
this.nativeElement ? this.nativeElement.resizeInterval = value : undefined;
}
/** @description An array of resources that can be assigned to the events. */
get resources() {
return this.nativeElement ? this.nativeElement.resources : undefined;
}
set resources(value) {
this.nativeElement ? this.nativeElement.resources = value : undefined;
}
/** @description Defines an array of dates that are not allowed to have events on. Events that overlap restricted Dates or start/end on them will not be displayed. */
get restrictedDates() {
return this.nativeElement ? this.nativeElement.restrictedDates : undefined;
}
set restrictedDates(value) {
this.nativeElement ? this.nativeElement.restrictedDates = value : undefined;
}
/** @description Defines an array of hours that are not allowed to have events on. Events that overlap restricted Hours or start/end on them will not be displayed. */
get restrictedHours() {
return this.nativeElement ? this.nativeElement.restrictedHours : undefined;
}
set restrictedHours(value) {
this.nativeElement ? this.nativeElement.restrictedHours = value : undefined;
}
/** @description Defines an array of dates and hours that are not allowed to have events on. Events that overlap restricted Hours or start/end on them will not be displayed. Each array item is an Object and requires 2 fields - date and hours. For example: { date: new Date(2022, 10, 1), hours: [[0, 6], 12, [20, 23]] }. The hours define a range of restricted hours similartly to the restricted hours property, the date defines a date where the restricted hours will be applied. */
get restricted() {
return this.nativeElement ? this.nativeElement.restricted : undefined;
}
set restricted(value) {
this.nativeElement ? this.nativeElement.restricted = value : undefined;
}
/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
get rightToLeft() {
return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
}
set rightToLeft(value) {
this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
}
/** @description Determines the position of the date navigation navigation buttons inside the header of the element. */
get scrollButtonsPosition() {
return this.nativeElement ? this.nativeElement.scrollButtonsPosition : undefined;
}
set scrollButtonsPosition(value) {
this.nativeElement ? this.nativeElement.scrollButtonsPosition = value : undefined;
}
/** @description Enables/Disables the current time shader. If enabled all cells that represent past time will be shaded. */
get shadeUntilCurrentTime() {
return this.nativeElement ? this.nativeElement.shadeUntilCurrentTime : undefined;
}
set shadeUntilCurrentTime(value) {
this.nativeElement ? this.nativeElement.shadeUntilCurrentTime = value : undefined;
}
/** @description Determines whether the resource legend is visible or not. The Legend shows the resources and their items in the footer section of the Scheduler. If filterable is enabled it is possible to filter by resource items by clicking on the corresponding resource item from the legend. */
get showLegend() {
return this.nativeElement ? this.nativeElement.showLegend : undefined;
}
set showLegend(value) {
this.nativeElement ? this.nativeElement.showLegend = value : undefined;
}
/** @description Determines the name of the resource data item property that will be used for sorting the resource data defined as the resource.dataSource. */
get sortBy() {
return this.nativeElement ? this.nativeElement.sortBy : undefined;
}
set sortBy(value) {
this.nativeElement ? this.nativeElement.sortBy = value : undefined;
}
/** @description Allows to define a custom sorting function that will be used to sort the resource data. The sortFunction is used when sortOrder is set to custom. */
get sortFunction() {
return this.nativeElement ? this.nativeElement.sortFunction : undefined;
}
set sortFunction(value) {
this.nativeElement ? this.nativeElement.sortFunction = value : undefined;
}
/** @description Determines the sorting order of the resource data items. When set to custom, a custom sorting function has to be defined for the sortFunction property. The asc stands for 'ascending' while desc means 'descending' sorting order. */
get sortOrder() {
return this.nativeElement ? this.nativeElement.sortOrder : undefined;
}
set sortOrder(value) {
this.nativeElement ? this.nativeElement.sortOrder = value : undefined;
}
/** @description Determines the repeating delay of the repeat buttons inside the header of the element. Such buttons are the Date navigation buttons and the view scroll buttons. */
get spinButtonsDelay() {
return this.nativeElement ? this.nativeElement.spinButtonsDelay : undefined;
}
set spinButtonsDelay(value) {
this.nativeElement ? this.nativeElement.spinButtonsDelay = value : undefined;
}
/** @description Determines the initial delay of the repeat buttons inside the header of the element. Such buttons are the Date navigation buttons and the view scroll buttons. */
get spinButtonsInitialDelay() {
return this.nativeElement ? this.nativeElement.spinButtonsInitialDelay : undefined;
}
set spinButtonsInitialDelay(value) {
this.nativeElement ? this.nativeElement.spinButtonsInitialDelay = value : undefined;
}
/** @description Defines the statuses that will be available for selection thourgh the window editor for the events. */
get statuses() {
return this.nativeElement ? this.nativeElement.statuses : undefined;
}
set statuses(value) {
this.nativeElement ? this.nativeElement.statuses = value : undefined;
}
/** @description Sets or gets the element's visual theme. */
get theme() {
return this.nativeElement ? this.nativeElement.theme : undefined;
}
set theme(value) {
this.nativeElement ? this.nativeElement.theme = value : undefined;
}
/** @description A format function for the Header of the Timeline. Allows to modify the date labels in the header cells. */
get timelineHeaderFormatFunction() {
return this.nativeElement ? this.nativeElement.timelineHeaderFormatFunction : undefined;
}
set timelineHeaderFormatFunction(value) {
this.nativeElement ? this.nativeElement.timelineHeaderFormatFunction = value : undefined;
}
/** @description Determines the date scale for the timeline cells. */
get timelineDayScale() {
return this.nativeElement ? this.nativeElement.timelineDayScale : undefined;
}
set timelineDayScale(value) {
this.nativeElement ? this.nativeElement.timelineDayScale = value : undefined;
}
/** @description Enables/Disables the tick marks next to the time cells in the vertical header of the element. Time header appears in 'day' and 'week' views. */
get timeRulerTicks() {
return this.nativeElement ? this.nativeElement.timeRulerTicks : undefined;
}
set timeRulerTicks(value) {
this.nativeElement ? this.nativeElement.timeRulerTicks = value : undefined;
}
/** @description Determines the timeZone for the element. By default if the local time zone is used if the property is not set. */
get timeZone() {
return this.nativeElement ? this.nativeElement.timeZone : undefined;
}
set timeZone(value) {
this.nativeElement ? this.nativeElement.timeZone = value : undefined;
}
/** @description Allows to display additional timeZones at once along with the default that is set via the timeZone property. Accepts an array values that represent the ids of valid time zones. The possbile time zones can be viewed in the timeZone property description. By default the local time zone is displayed. */
get timeZones() {
return this.nativeElement ? this.nativeElement.timeZones : undefined;
}
set timeZones(value) {
this.nativeElement ? this.nativeElement.timeZones = value : undefined;
}
/** @description Determines the delay ( in miliseconds) before the tooltip/menu appears. */
get tooltipDelay() {
return this.nativeElement ? this.nativeElement.tooltipDelay : undefined;
}
set tooltipDelay(value) {
this.nativeElement ? this.nativeElement.tooltipDelay = value : undefined;
}
/** @description Determines the offset ot the tooltip/menu. */
get tooltipOffset() {
return this.nativeElement ? this.nativeElement.tooltipOffset : undefined;
}
set tooltipOffset(value) {
this.nativeElement ? this.nativeElement.tooltipOffset = value : undefined;
}
/** @description Determines weather or not vertical scrollbar is shown. */
get verticalScrollBarVisibility() {
return this.nativeElement ? this.nativeElement.verticalScrollBarVisibility : undefined;
}
set verticalScrollBarVisibility(value) {
this.nativeElement ? this.nativeElement.verticalScrollBarVisibility = value : undefined;
}
/** @description Determines the current view. The property accepts view values that are defined in the views property. Custom views should contain a valid value that will be set as the current view. */
get view() {
return this.nativeElement ? this.nativeElement.view : undefined;
}
set view(value) {
this.nativeElement ? this.nativeElement.view = value : undefined;
}
/** @description Indicates the current Scheduler viewType. Custom views must contain a valid type property that corresponds to one of the view types. This property should not be set. */
get viewType() {
return this.nativeElement ? this.nativeElement.viewType : undefined;
}
set viewType(value) {
this.nativeElement ? this.nativeElement.viewType = value : undefined;
}
/** @description Determines the viewing date range of the timeline. The property should be set to an array of strings or view objects. When you set it to a string, you should use any of the following: 'day', 'week', 'month', 'agenda', 'timelineDay', 'timelineWeek', 'timelineMonth'. Custom views can be defined as objects instead of strings. The view object should contain the following properties: label - the label for the view.value - the value for the view. The value is the unique identifier for the view.type - the type of view. The type should be one of the default allowed values for a view.hideWeekend - an Optional property that allows to hide the weekend only for this specific view.hideNonworkingWeekdays - an Optional property that allows to hide the nonwrking weekdays for this specific view.shortcutKey - an Optional property that allows to set a custom shortcut key for the view.hideHours - an Optional property applicable only to timelineWeek view that allows to hide the hour cells and only show the day cells. */
get views() {
return this.nativeElement ? this.nativeElement.views : undefined;
}
set views(value) {
this.nativeElement ? this.nativeElement.views = value : undefined;
}
/** @description Determines type of the view selector located in the header of the element. */
get viewSelectorType() {
return this.nativeElement ? this.nativeElement.viewSelectorType : undefined;
}
set viewSelectorType(value) {
this.nativeElement ? this.nativeElement.viewSelectorType = value : undefined;
}
/** @description Determines the Start Date rule. The Week and TimelineWeek views start by default from the current date taking into account the firstDayOfWeek property. When this property is set to 'dateCurrent', these views will start from the value of the 'dateCurrent'. */
get viewStartDay() {
return this.nativeElement ? this.nativeElement.viewStartDay : undefined;
}
set viewStartDay(value) {
this.nativeElement ? this.nativeElement.viewStartDay = value : undefined;
}
/** @description Determines the format of the week days inside the element. */
get weekdayFormat() {
return this.nativeElement ? this.nativeElement.weekdayFormat : undefined;
}
set weekdayFormat(value) {
this.nativeElement ? this.nativeElement.weekdayFormat = value : undefined;
}
/** @description Determines the format of the dates inside the timeline header when they represent years. */
get yearFormat() {
return this.nativeElement ? this.nativeElement.yearFormat : undefined;
}
set yearFormat(value) {
this.nativeElement ? this.nativeElement.yearFormat = value : undefined;
}
/** @description Sets or gets if the element can be focused. */
get unfocusable() {
return this.nativeElement ? this.nativeElement.unfocusable : undefined;
}
set unfocusable(value) {
this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
}
/** @description Determines the maximum number of redo/undo steps that will be remembered by the Scheduler. When the number is reached the oldest records are removed in order to add new. */
get undoRedoSteps() {
return this.nativeElement ? this.nativeElement.undoRedoSteps : undefined;
}
set undoRedoSteps(value) {
this.nativeElement ? this.nativeElement.undoRedoSteps = value : undefined;
}
/** @description A function that can be used to completly customize the popup Window that is used to edit events. The function has the following arguments: target - the target popup Window that is about to be opened.type - the type of the window. The type determines the purpose of the window. The default type is an empty string which means that it's the default event editing window. The other type is 'confirm' ( confirmation window) that appears when clicking on a repeating event. eventObj - the event object that is going to be edited. */
get windowCustomizationFunction() {
return this.nativeElement ? this.nativeElement.windowCustomizationFunction : undefined;
}
set windowCustomizationFunction(value) {
this.nativeElement ? this.nativeElement.windowCustomizationFunction = value : undefined;
}
/** @description Adds an event to the Scheduler. Accepts an event object of the following format (same as the dataSource format): { label?: string, dateStart: date, dateEnd: date, description?: string, id?: string | number, class?: string, backgroundColor?: string, color?: string, notifications?: { interval: numeric, type?: string, time: number[] }[], allDay?: boolean, disableDrag?: boolean, disableResize?: boolean, repeat?: { repeatFreq: string, repeatInterval: number, repeatOn?: number | number[] | date, repeatEnd?: number | date, exceptions?: { date: date, dateStart?: date, dateEnd?: date, hidden?: boolean, backgroundColor?: string, status?: string, label?: string, description?: string, notifications?: { interval: numeric, type?: string, time: number[] }[], disableDrag?: boolean, disableResize?: boolean }[] }, status?: string }
* @param {any} eventObj. An object describing a Scheduler event that is not already present in the element.
*/
addEvent(eventObj) {
if (this.nativeElement.isRendered) {
this.nativeElement.addEvent(eventObj);
}
else {
this.nativeElement.whenRendered(() => {
this.nativeElement.addEvent(eventObj);
});
}