15
15
< ng-template #controlCell >
16
16
< ng-container *ngIf ="c|ajfGetTableCellControl as contr ">
17
17
< ng-container *ngIf ="contr ">
18
- < ng-container
19
- *ngIf ="contr!.show && (node.rows[row-1][column]|ajfIsCellEditable); else plainTextCell "
20
- >
18
+ < ng-container *ngIf ="contr!.show && (node.rows[row-1][column]|ajfIsCellEditable); else plainTextCell ">
21
19
< ng-container *ngIf ="contr.type === 'number';else genericInput ">
22
- < input
23
- (focusout) ="contr!.show = false "
24
- type ="number "
25
- [formControl] ="contr.control "
26
- (keydown.tab) ="goToNextCell($event, row, column) "
27
- autofocus
28
- />
20
+ < input (focusout) ="contr!.show = false " type ="number " [formControl] ="contr.control "
21
+ (keydown.tab) ="goToNextCell($event, row, column) " autofocus />
29
22
</ ng-container >
30
23
< ng-template #genericInput >
31
- < input
32
- (focusout) ="contr!.show = false "
33
- [type] ="contr.type "
34
- [formControl] ="contr.control "
35
- (keydown.tab) ="goToNextCell($event, row, column) "
36
- autofocus
37
- />
24
+ < input (focusout) ="contr!.show = false " [type] ="contr.type " [formControl] ="contr.control "
25
+ (keydown.tab) ="goToNextCell($event, row, column) " autofocus />
38
26
</ ng-template >
39
27
</ ng-container >
40
28
41
29
< ng-template #plainTextCell >
42
- < span class ="ajf-table-cell " (click) ="goToCell(row, column) "
43
- > {{ contr.control!.value | ajfTranslateIfString | ajfFormatIfNumber: '.0-2'
44
- }}</ span
45
- >
30
+ < span (click) ="goToCell(row, column) "> {{ contr.control!.value |
31
+ ajfTranslateIfString | ajfFormatIfNumber: '.0-2'
32
+ }}</ span >
46
33
</ ng-template >
47
34
</ ng-container >
48
35
</ ng-container >
52
39
</ tr >
53
40
</ ng-container >
54
41
</ ng-container >
55
- </ table >
42
+ </ table >
0 commit comments