Feat/importpreview2 (#6506)

* Allow column resizing in preview table

* added property to TableComponentProperties

* hooked up new prop into model view

* new setOptions

* adding enum to azdata interface

* bring in slickgrid 2.3.30

* PR feedback
This commit is contained in:
kenvanhyning
2019-07-26 08:31:47 -07:00
committed by GitHub
parent 9f342ec9d5
commit 5cffa7fe52
9 changed files with 74 additions and 8 deletions

View File

@@ -32,7 +32,11 @@ export class ProsePreviewPage extends ImportPage {
}
async start(): Promise<boolean> {
this.table = this.view.modelBuilder.table().component();
this.table = this.view.modelBuilder.table().withProperties<azdata.TableComponentProperties>({
data: undefined,
columns: undefined,
forceFitColumns: azdata.ColumnSizingMode.AutoFit
}).component();
this.refresh = this.view.modelBuilder.button().withProperties({
label: localize('flatFileImport.refresh', 'Refresh'),
isFile: false