-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathview.html
75 lines (68 loc) · 2.76 KB
/
view.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
71
72
73
74
<!--todo view -->
<div class="ui center aligned segment gadget" dnd-draggable
[dragEnabled]="true" [dragData]="instanceId" [dropZones]="['c0','c1','c2','c3','r0','r1']">
<app-gadget-header (mouseover)="showGadgetControls(true)"
(mouseleave)="showGadgetControls(false)"
[globalOptions]="globalOptions"
[title]="title"
[inRun]="inRun"
[inConfig]="inConfig"
[actionInitiated]="actionInitiated"
[showOperationControls]="showOperationControls"
[gadgetHasOperationControls]="gadgetHasOperationControls"
[showConfigurationControl]="showConfigurationControl"
[showControls]="showControls"
(toggleConfigModeEvent)="toggleConfigMode()"
(removeEvent)="remove()"
(runEvent)="run()"
(stopEvent)="stop()">
</app-gadget-header>
<div class="card" *ngIf="!inConfig">
<div class="content">
<div class="description">
<i class="big thumbs up outline icon"></i> This is a very simple todo gadget!
<br>
Todo service mock data:<span style="color:#0f9119"> {{data.value}} </span>
</div>
</div>
</div>
<table class="ui very basic table" *ngIf="!inConfig">
<thead>
<th class="c-col">#</th>
<th>Item</th>
<th></th>
</thead>
<tr class="ui basic segment" *ngFor="let todo of todoList; let i = index">
<td class="c-col">{{i + 1}}</td>
<td>{{todo}}</td>
<td style="text-align:right">
<a mat-mini-fab routerLink="." (click)="removeTodo(i)">
<mat-icon>clear</mat-icon>
</a>
</td>
</tr>
<tr>
<td></td>
<td>
<mat-form-field>
<input [(ngModel)]="todo" matInput placeholder="Add Todo">
</mat-form-field>
</td>
<td style="text-align:right">
<a mat-mini-fab routerLink="." color='primary' (click)="addTodo(todo)">
<mat-icon>add</mat-icon>
</a>
</td>
</tr>
</table>
<app-dynamic-form *ngIf="inConfig"
[gadgetTags]="gadgetTags"
[propertyPages]="propertyPages"
[instanceId]="instanceId"
(updatePropertiesEvent)="updateProperties($event)">
</app-dynamic-form>
<app-error-handler
[errorObject]="errorObject"
[errorExists]="errorExists">
</app-error-handler>
</div>