mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 02:02:35 -05:00
table component improvement (#13801)
* hyperlink column * fixed width for image only button - old behavior
This commit is contained in:
63
src/sql/azdata.proposed.d.ts
vendored
63
src/sql/azdata.proposed.d.ts
vendored
@@ -842,21 +842,76 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface IconColumnCellValue {
|
||||
/**
|
||||
* The icon to be displayed.
|
||||
*/
|
||||
icon: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
ariaLabel: string;
|
||||
/**
|
||||
* The title of the icon.
|
||||
*/
|
||||
title: string;
|
||||
}
|
||||
|
||||
export interface ButtonColumnCellValue {
|
||||
/**
|
||||
* The icon to be displayed.
|
||||
*/
|
||||
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
/**
|
||||
* The title of the button.
|
||||
*/
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export interface HyperlinkColumnCellValue {
|
||||
/**
|
||||
* The icon to be displayed.
|
||||
*/
|
||||
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
/**
|
||||
* The title of the hyperlink.
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* The url to open.
|
||||
*/
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export enum ColumnType {
|
||||
icon = 3
|
||||
icon = 3,
|
||||
hyperlink = 4
|
||||
}
|
||||
|
||||
export interface TableColumn {
|
||||
/**
|
||||
* The text to display on the column heading. 'value' property will be used, if not specified
|
||||
**/
|
||||
* The text to display on the column heading. 'value' property will be used, if not specified
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface IconColumnOptions {
|
||||
/**
|
||||
* The icon to use for all the cells in this column.
|
||||
*/
|
||||
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
}
|
||||
|
||||
export interface ButtonColumn extends IconColumnOptions, TableColumn {
|
||||
/**
|
||||
* Whether to show the text, default value is false.
|
||||
*/
|
||||
showText?: boolean;
|
||||
}
|
||||
|
||||
export interface HyperlinkColumn extends IconColumnOptions, TableColumn {
|
||||
}
|
||||
|
||||
export interface CheckboxColumn extends TableColumn {
|
||||
action: ActionOnCellCheckboxCheck;
|
||||
}
|
||||
|
||||
export enum AzureResource {
|
||||
/**
|
||||
* Microsoft Graph
|
||||
|
||||
Reference in New Issue
Block a user