table component improvement (#13801)

* hyperlink column

* fixed width for image only button - old behavior
This commit is contained in:
Alan Ren
2020-12-14 20:28:43 -08:00
committed by GitHub
parent 1f630b9767
commit ae6494f3e4
25 changed files with 605 additions and 788 deletions

View File

@@ -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