Adding context menu to table component (#18914)

* Adding context menu to table component

* Removing extra whitespace

* Some logic fixes

* Fixing focus logic
This commit is contained in:
Aasim Khan
2022-04-04 23:47:39 -07:00
committed by GitHub
parent b96fb5aa90
commit 4db0814b94
6 changed files with 167 additions and 12 deletions

View File

@@ -577,9 +577,25 @@ declare module 'azdata' {
url?: string;
}
export interface ContextMenuColumnCellValue {
/**
* The title of the hyperlink. By default, the title is 'Show Actions'
*/
title?: string;
/**
* commands for the menu. Use an array for a group and menu separators will be added.
*/
commands: (string | string[])[];
/**
* context that will be passed to the commands.
*/
context?: { [key: string]: string | boolean | number } | string | boolean | number | undefined
}
export enum ColumnType {
icon = 3,
hyperlink = 4
hyperlink = 4,
contextMenu = 5
}
export interface TableColumn {
@@ -615,6 +631,9 @@ declare module 'azdata' {
action: ActionOnCellCheckboxCheck;
}
export interface ContextMenuColumn extends TableColumn {
}
export interface QueryExecuteResultSetNotificationParams {
/**
* Contains execution plans returned by the database in ResultSets.