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

@@ -3206,11 +3206,18 @@ declare module 'azdata' {
customAction = 1
}
export enum ColumnSizingMode {
ForceFit = 0, // all columns will be sized to fit in viewable space, no horiz scroll bar
AutoFit = 1, // columns will be ForceFit up to a certain number; currently 3. At 4 or more the behavior will switch to NO force fit
DataFit = 2 // columns use sizing based on cell data, horiz scroll bar present if more cells than visible in view area
}
export interface TableComponentProperties extends ComponentProperties {
data: any[][];
columns: string[] | TableColumn[];
fontSize?: number | string;
selectedRows?: number[];
forceFitColumns?: ColumnSizingMode;
}
export interface FileBrowserTreeProperties extends ComponentProperties {