Feature/model view list (#1551)

* fixed the issue with drop down styling

* added list box to model view library
This commit is contained in:
Leila Lali
2018-06-08 13:51:02 -07:00
committed by GitHub
parent 0ae9b36d93
commit 02af7e9299
7 changed files with 206 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ declare module 'sqlops' {
text(): ComponentBuilder<TextComponent>;
button(): ComponentBuilder<ButtonComponent>;
dropDown(): ComponentBuilder<DropDownComponent>;
listBox(): ComponentBuilder<ListBoxComponent>;
table(): ComponentBuilder<TableComponent>;
dashboardWidget(widgetId: string): ComponentBuilder<DashboardWidgetComponent>;
dashboardWebview(webviewId: string): ComponentBuilder<DashboardWebviewComponent>;
@@ -334,6 +335,11 @@ declare module 'sqlops' {
editable?: boolean;
}
export interface ListBoxProperties {
selectedRow?: number;
values?: string[];
}
export interface WebViewProperties {
message?: any;
html?: string;
@@ -379,6 +385,12 @@ declare module 'sqlops' {
onValueChanged: vscode.Event<any>;
}
export interface ListBoxComponent extends Component, ListBoxProperties {
selectedRow?: number;
values: string[];
onRowSelected: vscode.Event<any>;
}
export interface TableComponent extends Component, TableComponentProperties {
onRowSelected: vscode.Event<any>;
}