File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11< div *ngIf ="create ">
2- < igx-grid height ="300px ">
2+ < igx-grid [moving] =" true " height ="300px ">
33 < igx-column [field] ="'columnA' "> </ igx-column >
44 < igx-column [field] ="'columnB' "> </ igx-column >
55 </ igx-grid >
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ export class GridRecreateSampleComponent implements OnInit {
1818 public create = false ;
1919
2020 public ngOnInit ( ) : void {
21- // new Array(100).fill({}).forEach((_, i) => {
22- // this.data.push({
23- // id: i,
24- // columnA: `A ${i}`,
25- // columnB: `B ${i}`,
26- // });
27- // });
21+ new Array ( 100 ) . fill ( { } ) . forEach ( ( _ , i ) => {
22+ this . data . push ( {
23+ id : i ,
24+ columnA : `A ${ i } ` ,
25+ columnB : `B ${ i } ` ,
26+ } ) ;
27+ } ) ;
2828 }
2929
3030}
You can’t perform that action at this time.
0 commit comments