mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 09:35:38 -05:00
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:
21
src/sql/azdata.proposed.d.ts
vendored
21
src/sql/azdata.proposed.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user