added Declarative table to model view controls (#1593)

* added Declarative table to model view controls
This commit is contained in:
Leila Lali
2018-06-11 12:40:17 -07:00
committed by GitHub
parent 3be0c5130a
commit 4609694141
12 changed files with 380 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ declare module 'sqlops' {
dropDown(): ComponentBuilder<DropDownComponent>;
listBox(): ComponentBuilder<ListBoxComponent>;
table(): ComponentBuilder<TableComponent>;
declarativeTable(): ComponentBuilder<DeclarativeTableComponent>;
dashboardWidget(widgetId: string): ComponentBuilder<DashboardWidgetComponent>;
dashboardWebview(webviewId: string): ComponentBuilder<DashboardWebviewComponent>;
formContainer(): FormBuilder;
@@ -318,6 +319,12 @@ declare module 'sqlops' {
label?: string;
}
export enum DeclarativeDataType {
string = 'string',
category = 'category',
boolean = 'boolean'
}
export interface RadioButtonProperties {
name?: string;
label?: string;
@@ -335,9 +342,23 @@ declare module 'sqlops' {
editable?: boolean;
}
export interface DeclarativeTableColumn {
displayName: string;
categoryValues: CategoryValue[];
valueType: DeclarativeDataType;
isReadOnly: boolean;
width: number|string;
}
export interface DeclarativeTableProperties {
data: any[][];
columns: DeclarativeTableColumn[];
}
export interface ListBoxProperties {
selectedRow?: number;
values?: string[];
}
export interface WebViewProperties {
@@ -385,6 +406,16 @@ declare module 'sqlops' {
onValueChanged: vscode.Event<any>;
}
export interface TableCell {
row: number;
column: number;
value: any;
}
export interface DeclarativeTableComponent extends Component, DeclarativeTableProperties {
onDataChanged: vscode.Event<any>;
}
export interface ListBoxComponent extends Component, ListBoxProperties {
selectedRow?: number;
values: string[];