forked from DevExpress/DevExtreme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.html
More file actions
82 lines (79 loc) · 2.44 KB
/
app.component.html
File metadata and controls
82 lines (79 loc) · 2.44 KB
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
<dx-scheduler
[dataSource]="appointmentsData"
[views]="views"
currentView="week"
[startDayHour]="9"
[endDayHour]="19"
[currentDate]="currentDate"
[height]="600"
[showAllDayPanel]="false"
allDayPanelMode="hidden"
(onAppointmentAdding)="onAppointmentAdding($event)"
(onAppointmentUpdating)="onAppointmentUpdating($event)"
>
<dxi-scheduler-resource
fieldExpr="assigneeId"
[dataSource]="assignees"
valueExpr="id"
colorExpr="color"
icon="user"
[allowMultiple]="true"
></dxi-scheduler-resource>
<dxo-scheduler-editing [popup]="popupOptions">
<dxo-scheduler-form
labelMode="hidden"
[elementAttr]="formElementAttr"
[customizeItem]="customizeItem"
[onInitialized]="onFormInitialized"
>
<dxi-scheduler-item
name="conflictInformer"
template="conflictInformerTemplate"
></dxi-scheduler-item>
<dxi-scheduler-item name="mainGroup" itemType="group">
<dxi-scheduler-item name="subjectGroup"></dxi-scheduler-item>
<dxi-scheduler-item name="dateGroup"></dxi-scheduler-item>
<dxi-scheduler-item name="repeatGroup"></dxi-scheduler-item>
<dxi-scheduler-item name="assigneeIdGroup">
<dxi-scheduler-item name="assigneeIdIcon"></dxi-scheduler-item>
<dxi-scheduler-item
name="assigneeIdEditor"
[isRequired]="true"
[editorOptions]="assigneeIdEditorOptions"
></dxi-scheduler-item>
</dxi-scheduler-item>
</dxi-scheduler-item>
<dxi-scheduler-item
name="recurrenceGroup"
itemType="group"
></dxi-scheduler-item>
</dxo-scheduler-form>
</dxo-scheduler-editing>
<div *dxTemplate="let _ of 'conflictInformerTemplate'">
<div class="conflict-informer"
>This time slot conflicts with another appointment.</div
>
</div>
<div *dxTemplate="let tagData of 'assigneeTagTemplate'">
<div
class="dx-tag-content"
[style.background-color]="tagData.color"
[style.border-color]="tagData.color"
>
<span>{{ tagData.text }}</span>
<div class="dx-tag-remove-button"></div>
</div>
</div>
</dx-scheduler>
<div class="options">
<div class="option">
<span>Allow Overlapping Appointments</span>
<dx-select-box
[items]="overlappingRuleItems"
valueExpr="value"
displayExpr="text"
value="sameResource"
(onValueChanged)="onOverlappingRuleChanged($event)"
></dx-select-box>
</div>
</div>