Cleanup and fixes for resource viewer and filter plugin (#12154)

* Cleanup and fixes for resource viewer and filter plugin

* fix strict nulls
This commit is contained in:
Charles Gagnon
2020-09-04 19:10:26 -07:00
committed by GitHub
parent fa5bfee0cf
commit b8d0e2a9e3
10 changed files with 191 additions and 134 deletions

View File

@@ -106,22 +106,55 @@ declare module 'azdata' {
DataGridProvider = 'DataGridProvider'
}
export type DataGridColumnType = 'hyperlink' | 'text' | 'image';
/**
* A column in a data grid
*/
export interface DataGridColumn {
/**
* The text to display on the column heading.
**/
*/
name: string;
/**
* The property name in the DataGridItem
**/
*/
field: string;
/**
* A unique identifier for the column within the grid.
*/
id: string;
/**
* The type of column this is. This is used to determine how to render the contents.
*/
type: DataGridColumnType;
/**
* Whether this column is sortable.
*/
sortable?: boolean;
/**
* Whether this column is filterable
*/
filterable?: boolean;
/**
* If false, column can no longer be resized.
*/
resizable?: boolean;
/**
* If set to a non-empty string, a tooltip will appear on hover containing the string.
*/
tooltip?: string;
/**
* Width of the column in pixels.
*/
width?: number
}
/**
@@ -132,10 +165,14 @@ declare module 'azdata' {
* A unique identifier for this item
*/
id: string;
/**
* The optional icon to display for this item
*/
iconPath?: string;
/**
* The other properties that will be displayed in the grid
*/
[key: string]: string;
[key: string]: any;
}
/**