-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.component.html
70 lines (64 loc) · 2.07 KB
/
app.component.html
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
<div id="app-container">
<dx-tree-list id="treeList"
[dataSource]="employees"
[rootValue]="-1"
keyExpr="ID"
parentIdExpr="HeadID"
[autoExpandAll]="true"
[allowColumnReordering]="true"
[allowColumnResizing]="true"
[columnAutoWidth]="true"
(onSelectionChanged)="selectEmployee($event)">
<dxi-column dataField="FullName" [fixed]="true">
<dxi-validation-rule type="required"></dxi-validation-rule>
</dxi-column>
<dxi-column
dataField="Position">
<dxi-validation-rule type="required"></dxi-validation-rule>
</dxi-column>
<dxi-column
dataField="BirthDate"
dataType="date"
[width]="100">
<dxi-validation-rule type="required"></dxi-validation-rule>
</dxi-column>
<dxi-column
dataField="HireDate"
dataType="date"
[width]="100">
<dxi-validation-rule type="required"></dxi-validation-rule>
</dxi-column>
<dxi-column dataField="City"></dxi-column>
<dxi-column
dataField="State">
<dxi-validation-rule type="required"></dxi-validation-rule>
</dxi-column>
<dxi-column dataField="Email" [visible]="false"></dxi-column>
<dxi-column dataField="MobilePhone"></dxi-column>
<dxi-column dataField="Skype"></dxi-column>
<dxo-column-fixing [enabled]="true"></dxo-column-fixing>
<dxo-column-chooser [enabled]="true"></dxo-column-chooser>
<dxo-filter-row [visible]="true"></dxo-filter-row>
<dxo-search-panel [visible]="true"></dxo-search-panel>
<dxo-selection mode="single"></dxo-selection>
<dxo-editing
mode="popup"
[allowUpdating]="true"
[allowDeleting]="true"
[allowAdding]="true">
</dxo-editing>
<dxo-row-dragging
[onDragChange]="onDragChange"
[onReorder]="onReorder"
[allowDropInsideItem]="true"
[allowReordering]="true"
></dxo-row-dragging>
<dxo-paging
[enabled]="true"
[pageSize]="10">
</dxo-paging>
</dx-tree-list>
<p id="selected-employee" *ngIf="selectedEmployee">
Selected employee: {{ selectedEmployee.FullName }}
</p>
</div>