@@ -53,11 +53,11 @@ export class GridAngularComponent implements OnInit {
5353 </ul>
5454 ` ;
5555
56- private _commandQueue = [ ] ;
57- angularGrid : AngularGridInstance ;
58- columnDefinitions : Column [ ] ;
59- gridOptions : GridOption ;
60- dataset : any [ ] ;
56+ private _commandQueue : any [ ] = [ ] ;
57+ angularGrid ! : AngularGridInstance ;
58+ columnDefinitions : Column [ ] = [ ] ;
59+ gridOptions ! : GridOption ;
60+ dataset ! : any [ ] ;
6161 gridObj : any ;
6262 isAutoEdit = true ;
6363 alertWarning : any ;
@@ -270,7 +270,7 @@ export class GridAngularComponent implements OnInit {
270270 this . dataset = this . mockData ( NB_ITEMS ) ;
271271 }
272272
273- mockData ( itemCount , startingIndex = 0 ) {
273+ mockData ( itemCount : number , startingIndex = 0 ) {
274274 // mock a dataset
275275 const tempDataset = [ ] ;
276276 for ( let i = startingIndex ; i < ( startingIndex + itemCount ) ; i ++ ) {
@@ -294,11 +294,11 @@ export class GridAngularComponent implements OnInit {
294294 return tempDataset ;
295295 }
296296
297- onCellChanged ( e , args ) {
297+ onCellChanged ( e : Event , args : any ) {
298298 this . updatedObject = args . item ;
299299 }
300300
301- onCellClicked ( e , args ) {
301+ onCellClicked ( e : Event , args : any ) {
302302 const metadata = this . angularGrid . gridService . getColumnFromEventArguments ( args ) ;
303303 console . log ( metadata ) ;
304304
@@ -317,7 +317,7 @@ export class GridAngularComponent implements OnInit {
317317 }
318318 }
319319
320- onCellValidation ( e , args ) {
320+ onCellValidation ( e : Event , args : any ) {
321321 alert ( args . validationResults . msg ) ;
322322 }
323323
@@ -329,7 +329,7 @@ export class GridAngularComponent implements OnInit {
329329 return true ;
330330 }
331331
332- setAutoEdit ( isAutoEdit ) {
332+ setAutoEdit ( isAutoEdit : boolean ) {
333333 this . isAutoEdit = isAutoEdit ;
334334 this . gridObj . setOptions ( { autoEdit : isAutoEdit } ) ; // change the grid option dynamically
335335 return true ;
0 commit comments