Add support for "More Actions" column in Resource Viewer (#13093)

* Add support for "More Actions" column in resource viewer

* update provider

* remove import

* Use menu contribution and make actions column always show

* cleanup

* move context menu anchor

* Comments
This commit is contained in:
Charles Gagnon
2020-10-29 10:50:27 -07:00
committed by GitHub
parent 10f6fe2d09
commit 66da2a46c5
12 changed files with 189 additions and 43 deletions

View File

@@ -139,7 +139,11 @@ declare module 'azdata' {
DataGridProvider = 'DataGridProvider'
}
/**
* The type of the DataGrid column
*/
export type DataGridColumnType = 'hyperlink' | 'text' | 'image';
/**
* A column in a data grid
*/
@@ -198,10 +202,14 @@ declare module 'azdata' {
* The ID of the command to execute
*/
id: string;
/**
* The text to display for the action
*/
displayText?: string;
/**
* The optional args to pass to the command
*/
args?: string[];
args?: any[];
}
/**
@@ -226,14 +234,11 @@ declare module 'azdata' {
* A unique identifier for this item
*/
id: string;
/**
* The optional icon to display for this item
* The other properties that will be displayed in the grid columns
*/
iconPath?: string;
/**
* The other properties that will be displayed in the grid
*/
[key: string]: string | DataGridHyperlinkInfo;
fieldValues: { [key: string]: string | DataGridHyperlinkInfo }
}
/**