mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Add hyperlink support to DataGrid columns (#13061)
* Add hyperlink support to DataGrid columns * pr feedback * Remove unused aria label * fix error message display * fix compile
This commit is contained in:
30
src/sql/azdata.proposed.d.ts
vendored
30
src/sql/azdata.proposed.d.ts
vendored
@@ -182,6 +182,34 @@ declare module 'azdata' {
|
||||
width?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Info for a command to execute
|
||||
*/
|
||||
export interface ExecuteCommandInfo {
|
||||
/**
|
||||
* The ID of the command to execute
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* The optional args to pass to the command
|
||||
*/
|
||||
args?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Info for displaying a hyperlink value in a Data Grid table
|
||||
*/
|
||||
export interface DataGridHyperlinkInfo {
|
||||
/**
|
||||
* The text to display for the link
|
||||
*/
|
||||
displayText: string;
|
||||
/**
|
||||
* The URL to open or command to execute
|
||||
*/
|
||||
linkOrCommand: string | ExecuteCommandInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* An item for displaying in a data grid
|
||||
*/
|
||||
@@ -197,7 +225,7 @@ declare module 'azdata' {
|
||||
/**
|
||||
* The other properties that will be displayed in the grid
|
||||
*/
|
||||
[key: string]: any;
|
||||
[key: string]: string | DataGridHyperlinkInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user