Results grid options (#962)

* added inital config

* added the ability to specifiy properties of the grid

* formatting

* fix some rendering bugs

* vbump
This commit is contained in:
Anthony Dresser
2018-03-23 13:41:16 -07:00
committed by GitHub
parent 357bb1916e
commit f2779f2a50
10 changed files with 216 additions and 48 deletions

View File

@@ -133,6 +133,7 @@ export class QueryComponent extends GridParentComponent implements OnInit, OnDes
private resizing = false;
private resizeHandleTop: string = '0';
private scrollEnabled = true;
private rowHeight: number;
// tslint:disable-next-line:no-unused-variable
private firstRender = true;
private totalElapsedTimeSpan: number;
@@ -157,6 +158,16 @@ export class QueryComponent extends GridParentComponent implements OnInit, OnDes
) {
super(el, cd, bootstrapService);
this._el.nativeElement.className = 'slickgridContainer';
this.rowHeight = bootstrapService.configurationService.getValue<any>('resultsGrid').rowHeight;
bootstrapService.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('resultsGrid')) {
this.rowHeight = bootstrapService.configurationService.getValue<any>('resultsGrid').rowHeight;
this.slickgrids.forEach(i => {
i.rowHeight = this.rowHeight;
});
this.resizeGrids();
}
});
}
/**