support menu column (#15754)

* support menu column

* comments
This commit is contained in:
Alan Ren
2021-06-21 10:36:55 -07:00
committed by GitHub
parent 22dcf7777c
commit 0e1a8ab8ea
5 changed files with 80 additions and 11 deletions

View File

@@ -260,7 +260,8 @@ declare module 'azdata' {
export enum DeclarativeDataType {
component = 'component'
component = 'component',
menu = 'menu'
}
export type DeclarativeTableRowSelectedEvent = {
@@ -394,11 +395,23 @@ declare module 'azdata' {
selectedRow?: number;
}
export interface DeclarativeTableMenuCellValue {
/**
* 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 interface DeclarativeTableCellValue {
/**
* The cell value
*/
value: string | number | boolean | Component;
value: string | number | boolean | Component | DeclarativeTableMenuCellValue;
/**
* The aria-label of the cell
*/