mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 17:23:21 -05:00
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:
43
src/sql/azdata.proposed.d.ts
vendored
43
src/sql/azdata.proposed.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user