Add title to table (#7182)

This commit is contained in:
Chris LaFreniere
2019-09-12 14:57:39 -07:00
committed by GitHub
parent 823d136a00
commit 2128851bdf

View File

@@ -449,6 +449,7 @@ export abstract class GridTableBase<T> extends Disposable implements IView {
};
this.dataProvider = new AsyncDataProvider(collection);
this.table = this._register(new Table(tableContainer, { dataProvider: this.dataProvider, columns: this.columns }, tableOptions));
this.table.setTableTitle(localize('resultsGrid', "Results grid"));
this.table.setSelectionModel(this.selectionModel);
this.table.registerPlugin(new MouseWheelSupport());
this.table.registerPlugin(new AutoColumnSize({ autoSizeOnRender: !this.state.columnSizes && this.configurationService.getValue('resultsGrid.autoSizeColumns'), maxWidth: this.configurationService.getValue<number>('resultsGrid.maxColumnWidth') }));