You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/modules/angular-slickgrid/components/angular-slickgrid.component.ts
+9-7
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ export class AngularSlickgridComponent<TData = any> implements AfterViewInit, On
156
156
157
157
@Input()customDataView: any;
158
158
@Input()gridId='';
159
-
@Input()gridOptions!: GridOption;
159
+
@Input()gridOptions: GridOption={};
160
160
161
161
@Input()
162
162
getpaginationOptions(): Pagination|undefined{
@@ -359,8 +359,8 @@ export class AngularSlickgridComponent<TData = any> implements AfterViewInit, On
359
359
}
360
360
361
361
ngAfterViewInit(){
362
-
if(!this.gridOptions||!this.columnDefinitions){
363
-
thrownewError('Using `<angular-slickgrid>` requires [gridOptions] and [columnDefinitions], it seems that you might have forgot to provide them since at least of them is undefined.');
362
+
if(!this.columnDefinitions){
363
+
thrownewError('Using `<angular-slickgrid>` requires [columnDefinitions], it seems that you might have forgot to provide the missing bindable input.');
364
364
}
365
365
366
366
this.initialization(this._eventHandler);
@@ -424,8 +424,10 @@ export class AngularSlickgridComponent<TData = any> implements AfterViewInit, On
0 commit comments