1
1
< div class ="hgrid-sample ">
2
2
< h4 class ="sample-title "> Sample One</ h4 >
3
3
< div class ="density-chooser " style ="margin-bottom: 16px ">
4
- < igx-buttongroup [values] ="displayDensities " (onSelect) ="selectDensity($event) " style ="display: block; width: 500px "> </ igx-buttongroup >
4
+ < igx-buttongroup [values] ="displayDensities " (onSelect) ="selectDensity($event) "
5
+ style ="display: block; width: 500px "> </ igx-buttongroup >
5
6
</ div >
6
7
< button igxButton ="raised " (click) ="getState() "> Get state</ button >
7
8
< igx-hierarchical-grid #grid1 [data] ="localData " [showExpandAll] ='true ' [hasChildrenKey] ='"hasChild" ' class ="hgrid "
8
- [displayDensity] ="density " [rowSelection] ="selectionMode " [autoGenerate] ="false " [allowFiltering] ='true ' [paging] ="true " [rowDraggable] ="true "
9
- [height] ="'600px' " [width] ="'800px' " [expandChildren] ="rootExpanded " #hGrid >
9
+ [displayDensity] ="density " [rowSelection] ="selectionMode " [autoGenerate] ="false " [allowFiltering] ='true '
10
+ [paging] ="true " [rowDraggable] ="true " [height] ="'600px' " [width] ="'800px' " [expandChildren] ="rootExpanded "
11
+ #hGrid >
10
12
< igx-column field ="ID " [resizable] ="true " [pinned] ="true " [filterable] ='true '> </ igx-column >
11
13
< igx-column-group header ="Information ">
12
14
< igx-column field ="ChildLevels " [resizable] ="true " [groupable] ='true '> </ igx-column >
@@ -24,47 +26,50 @@ <h4 class="sample-title">Sample One</h4>
24
26
< ng-template igxRowCollapsedIndicator >
25
27
< igx-icon role ="button " fontSet ="material "> add</ igx-icon >
26
28
</ ng-template >
27
- < igx-row-island [rowDraggable] ="true " [height] ='"1200px" ' [showExpandAll] ='true ' [key] ="'childData' " [autoGenerate] ="false " [allowFiltering] ='false ' [rowSelection] ='selectionMode ' [expandChildren] ="firstLevelExpanded " #layout1 >
28
- < igx-column field ="ID " [hasSummary] ='true ' [dataType] ="'number' "> </ igx-column >
29
- < igx-column-group header ="Information2 ">
30
- < igx-column field ="ChildLevels " [resizable] ="true " [groupable] ='true '> </ igx-column >
31
- < igx-column field ="ProductName " [resizable] ="true " [groupable] ='true '> </ igx-column >
29
+ < igx-row-island [rowDraggable] ="true " [height] ='"1200px" ' [showExpandAll] ='true ' [key] ="'childData' "
30
+ [autoGenerate] ="false " [allowFiltering] ='false ' [rowSelection] ='selectionMode '
31
+ [expandChildren] ="firstLevelExpanded " #layout1 >
32
+ < igx-column field ="ID " [hasSummary] ='true ' [dataType] ="'number' "> </ igx-column >
33
+ < igx-column-group header ="Information2 ">
34
+ < igx-column field ="ChildLevels " [resizable] ="true " [groupable] ='true '> </ igx-column >
35
+ < igx-column field ="ProductName " [resizable] ="true " [groupable] ='true '> </ igx-column >
36
+ </ igx-column-group >
37
+ < ng-template let-data igxRowDragGhost >
38
+ < div class ="dragGhost ">
39
+ < igx-icon fontSet ="material "> </ igx-icon >
40
+ Moving child {{data.ProductName}}!
41
+ </ div >
42
+ </ ng-template >
43
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="false " [rowSelection] ='selectionMode '
44
+ [allowFiltering] ='true '>
45
+ < igx-column field ="ID " [hasSummary] ='true '> </ igx-column >
46
+ < igx-column-group header ="Information3 ">
47
+ < igx-column [resizable] ="true " field ="ChildLevels "> </ igx-column >
48
+ < igx-column field ="ProductName "> </ igx-column >
32
49
</ igx-column-group >
33
- < ng-template let-data igxRowDragGhost >
34
- < div class ="dragGhost ">
35
- < igx-icon fontSet ="material "> </ igx-icon >
36
- Moving child {{data.ProductName}}!
37
- </ div >
38
- </ ng-template >
39
- < igx-row-island [key] ="'childData' " [autoGenerate] ="false " [rowSelection] ='selectionMode ' [allowFiltering] ='true ' >
50
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="false " [rowSelection] ='selectionMode '>
40
51
< igx-column field ="ID " [hasSummary] ='true '> </ igx-column >
41
- < igx-column-group header ="Information3 ">
42
- < igx-column [resizable] =" true " field ="ChildLevels "> </ igx-column >
52
+ < igx-column-group header ="Information4 ">
53
+ < igx-column field ="ChildLevels "> </ igx-column >
43
54
< igx-column field ="ProductName "> </ igx-column >
44
55
</ igx-column-group >
45
- < igx-row-island [key] ="'childData' " [autoGenerate] ="false " [rowSelection] ='selectionMode '>
46
- < igx-column field ="ID " [hasSummary] ='true '> </ igx-column >
47
- < igx-column-group header ="Information4 ">
48
- < igx-column field ="ChildLevels "> </ igx-column >
49
- < igx-column field ="ProductName "> </ igx-column >
50
- </ igx-column-group >
51
- </ igx-row-island >
52
- < igx-row-island [key] ="'childData2' " [autoGenerate] ="false " [rowSelection] ='selectionMode ' >
53
- < igx-column field ="ChildLevels " [groupable] ='true ' [hasSummary] ='true '> </ igx-column >
54
- < igx-column field ="ProductName " [groupable] ='true ' [hasSummary] ='true '> </ igx-column >
56
+ </ igx-row-island >
57
+ < igx-row-island [key] ="'childData2' " [autoGenerate] ="false " [rowSelection] ='selectionMode '>
58
+ < igx-column field ="ChildLevels " [groupable] ='true ' [hasSummary] ='true '> </ igx-column >
59
+ < igx-column field ="ProductName " [groupable] ='true ' [hasSummary] ='true '> </ igx-column >
55
60
</ igx-row-island >
56
61
57
62
</ igx-row-island >
58
63
</ igx-row-island >
59
- <!-- <igx-row-island [key]="'childData2'" [autoGenerate]="false" [rowSelection]='selectionMode' >
64
+ <!-- <igx-row-island [key]="'childData2'" [autoGenerate]="false" [rowSelection]='selectionMode' >
60
65
<igx-column field="ChildLevels" [groupable]='true'></igx-column>
61
66
<igx-column field="ProductName" [groupable]='true'></igx-column>
62
67
</igx-row-island> -->
63
68
< ng-template let-data igxRowDragGhost >
64
69
< div class ="dragGhost ">
65
- < igx-icon fontSet ="material "> </ igx-icon >
66
- Moving parent {{data.ProductName}}!
67
- </ div >
70
+ < igx-icon fontSet ="material "> </ igx-icon >
71
+ Moving parent {{data.ProductName}}!
72
+ </ div >
68
73
</ ng-template >
69
74
</ igx-hierarchical-grid >
70
75
@@ -77,9 +82,12 @@ <h4 class="sample-title">Sample two</h4>
77
82
< button igxButton ="raised " (click) ='toggleRootLevel() '> Toggle root level</ button >
78
83
< button igxButton ="raised " (click) ='toggleFirstIsland() '> Toggle level 1</ button >
79
84
</ div >
80
- < igx-hierarchical-grid [showExpandAll] ='true ' [data] ="localData " [autoGenerate] ="true " [height] ="'600px' " [width] ="'800px' " #hGrid2 >
81
- < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode ' [allowFiltering] ='true ' >
82
- < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode ' [allowFiltering] ='true '> </ igx-row-island >
85
+ < igx-hierarchical-grid [showExpandAll] ='true ' [data] ="localData " [autoGenerate] ="true " [height] ="'600px' "
86
+ [width] ="'800px' " #hGrid2 >
87
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode '
88
+ [allowFiltering] ='true '>
89
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode '
90
+ [allowFiltering] ='true '> </ igx-row-island >
83
91
</ igx-row-island >
84
92
< igx-row-island [key] ="'childData2' " [autoGenerate] ="true " [allowFiltering] ='true '> </ igx-row-island >
85
93
</ igx-hierarchical-grid >
@@ -91,19 +99,21 @@ <h4 class="sample-title">Sample three</h4>
91
99
</ div >
92
100
< igx-hierarchical-grid [data] ="localData " [autoGenerate] ="true " [height] ="'600px' " [width] ="'800px' " #hGrid2 >
93
101
94
- < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode ' [allowFiltering] ='true ' >
102
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode '
103
+ [allowFiltering] ='true '>
95
104
< div *ngIf ='riToggle '>
96
- < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode ' [allowFiltering] ='true '> </ igx-row-island >
105
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="true " [rowSelection] ='selectionMode '
106
+ [allowFiltering] ='true '> </ igx-row-island >
97
107
</ div >
98
- </ igx-row-island >
108
+ </ igx-row-island >
99
109
100
110
101
111
102
112
< div *ngIf ='!riToggle '>
103
- < igx-row-island [key] ="'childData2' " [autoGenerate] ="false ">
104
- < igx-column field ="ChildLevels " [groupable] ='true '> </ igx-column >
105
- < igx-column field ="ProductName " [groupable] ='true '> </ igx-column >
106
- </ igx-row-island >
113
+ < igx-row-island [key] ="'childData2' " [autoGenerate] ="false ">
114
+ < igx-column field ="ChildLevels " [groupable] ='true '> </ igx-column >
115
+ < igx-column field ="ProductName " [groupable] ='true '> </ igx-column >
116
+ </ igx-row-island >
107
117
</ div >
108
118
</ igx-hierarchical-grid >
109
119
@@ -113,15 +123,16 @@ <h4 class="sample-title">Sample 4</h4>
113
123
< button igxButton ="raised " (click) ='changeData() '> Change data runtime</ button >
114
124
</ div >
115
125
< igx-hierarchical-grid [data] ="localData1 " [autoGenerate] ="false " [height] ="'600px' " [width] ="'800px' " #hGrid2 >
116
- < igx-column field ="ID " [resizable] ="true " [pinned] ="true " [filterable] ='true '> </ igx-column >
117
- < igx-column field ="ChildLevels " [resizable] ="true " [groupable] ='true '> </ igx-column >
118
- < igx-column field ="ProductName " hasSummary ='true '> </ igx-column >
119
- < igx-column *ngFor ="let c of columns " [field] ="c "> </ igx-column >
120
- < igx-row-island [key] ="'childData' " [autoGenerate] ="false " [rowSelection] ='selectionMode ' [allowFiltering] ='true '>
121
- < igx-column field ="ID " [hasSummary] ='true ' [dataType] ="'number' "> </ igx-column >
122
- < igx-column *ngFor ="let c of childColumns " [field] ="c "> </ igx-column >
123
- </ igx-row-island >
126
+ < igx-column field ="ID " [resizable] ="true " [pinned] ="true " [filterable] ='true '> </ igx-column >
127
+ < igx-column field ="ChildLevels " [resizable] ="true " [groupable] ='true '> </ igx-column >
128
+ < igx-column field ="ProductName " hasSummary ='true '> </ igx-column >
129
+ < igx-column *ngFor ="let c of columns " [field] ="c "> </ igx-column >
130
+ < igx-row-island [key] ="'childData' " [autoGenerate] ="false " [rowSelection] ='selectionMode '
131
+ [allowFiltering] ='true '>
132
+ < igx-column field ="ID " [hasSummary] ='true ' [dataType] ="'number' "> </ igx-column >
133
+ < igx-column *ngFor ="let c of childColumns " [field] ="c "> </ igx-column >
134
+ </ igx-row-island >
124
135
</ igx-hierarchical-grid >
125
136
126
137
127
- </ div >
138
+ </ div >
0 commit comments