mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 09:35:38 -05:00
Change tables to make them work for our scenario (#12193)
* Change tables to make them work for our scenario * Comments & deprecate API * Disable selections by default
This commit is contained in:
28
src/sql/azdata.proposed.d.ts
vendored
28
src/sql/azdata.proposed.d.ts
vendored
@@ -203,17 +203,26 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface DeclarativeTableColumn {
|
||||
headerCssStyles?: { [key: string]: string };
|
||||
rowCssStyles?: { [key: string]: string };
|
||||
headerCssStyles?: CssStyles;
|
||||
rowCssStyles?: CssStyles;
|
||||
ariaLabel?: string;
|
||||
showCheckAll?: boolean;
|
||||
isChecked?: boolean;
|
||||
}
|
||||
|
||||
|
||||
export enum DeclarativeDataType {
|
||||
component = 'component'
|
||||
}
|
||||
|
||||
export type DeclarativeTableRowSelectedEvent = {
|
||||
row: number
|
||||
};
|
||||
|
||||
export interface DeclarativeTableComponent extends Component, DeclarativeTableProperties {
|
||||
onRowSelected: vscode.Event<DeclarativeTableRowSelectedEvent>;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add optional azureAccount for connectionWidget.
|
||||
*/
|
||||
@@ -295,6 +304,21 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface DeclarativeTableProperties extends ComponentProperties {
|
||||
/**
|
||||
* dataValues will only be used if data is an empty array
|
||||
*/
|
||||
dataValues?: DeclarativeTableCellValue[][];
|
||||
|
||||
/**
|
||||
* Should the table react to user selections
|
||||
*/
|
||||
selectEffect?: boolean; // Defaults to false
|
||||
}
|
||||
|
||||
export interface DeclarativeTableCellValue {
|
||||
value: string | number | boolean;
|
||||
ariaLabel?: string;
|
||||
style?: CssStyles
|
||||
}
|
||||
|
||||
export interface ComponentProperties {
|
||||
|
||||
Reference in New Issue
Block a user