added table componenet (#1542)

This commit is contained in:
Leila Lali
2018-06-04 12:04:05 -07:00
committed by GitHub
parent 9ad4ec6464
commit 473a414bc3
7 changed files with 275 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ declare module 'sqlops' {
text(): ComponentBuilder<TextComponent>;
button(): ComponentBuilder<ButtonComponent>;
dropDown(): ComponentBuilder<DropDownComponent>;
table(): ComponentBuilder<TableComponent>;
dashboardWidget(widgetId: string): ComponentBuilder<DashboardWidgetComponent>;
dashboardWebview(webviewId: string): ComponentBuilder<DashboardWebviewComponent>;
formContainer(): FormBuilder;
@@ -292,6 +293,16 @@ declare module 'sqlops' {
required?: boolean;
}
export interface TableColumn {
value: string
}
export interface TableComponentProperties {
data: any[][];
columns: string[] | TableColumn[];
selectedRows?: number[];
}
export interface CheckBoxProperties {
checked?: boolean;
label?: string;
@@ -354,6 +365,10 @@ declare module 'sqlops' {
onValueChanged: vscode.Event<any>;
}
export interface TableComponent extends Component, TableComponentProperties {
onRowSelected: vscode.Event<any>;
}
export interface WebViewComponent extends Component {
html: string;
message: any;