-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.component.html
More file actions
55 lines (54 loc) · 1.64 KB
/
app.component.html
File metadata and controls
55 lines (54 loc) · 1.64 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
<div id="app-container">
<dx-tab-panel
id="tabPanel"
[loop]="true"
[animationEnabled]="true"
[swipeEnabled]="true"
[(selectedIndex)]="selectedTabIndex"
>
<dxi-item title="Employee" icon="floppy">
<div *dxTemplate>
<dx-form id="form" [formData]="employeeData">
<dxi-item dataField="name">
<dxo-label template="name"></dxo-label>
</dxi-item>
<dxi-item dataField="position">
<dxo-label template="position"></dxo-label>
</dxi-item>
<<dxi-item dataField="hireDate"></dxi-item>
<dxi-item dataField="officeNumber">
<dxo-label template="officeNumber"></dxo-label>
</dxi-item>
<ng-container *ngFor="let label of labelTemplates">
<div *dxTemplate="let data of label.name">
<div><i class="dx-icon {{ label.icon }}"></i>{{ data.text }}</div>
</div>
</ng-container>
</dx-form>
</div>
</dxi-item>
<dxi-item title="Notes" icon="comment">
<div *dxTemplate>
<dx-text-area id="textArea" [(value)]="employeeData.notes">
</dx-text-area>
</div>
</dxi-item>
<dxi-item title="Role" icon="isnotblank" badge="new">
<div *dxTemplate>
<dx-radio-group
id="radioGroup"
[items]="employeeData.roles"
[(value)]="employeeData.roles[0]"
>
</dx-radio-group>
</div>
</dxi-item>
</dx-tab-panel>
<dx-radio-group
[items]="tabNames"
[value]="tabNames[selectedTabIndex]"
layout="horizontal"
(onValueChanged)="onValueChanged($event)"
>
</dx-radio-group>
</div>