Feature/input box component (#1190)

* Adding new view component for input box
This commit is contained in:
Leila Lali
2018-04-20 16:26:58 -07:00
committed by GitHub
parent 93aa052856
commit a7c4686980
11 changed files with 289 additions and 18 deletions

View File

@@ -19,6 +19,7 @@ declare module 'sqlops' {
navContainer(): ContainerBuilder<NavContainer, any, any>;
flexContainer(): FlexBuilder;
card(): ComponentBuilder<CardComponent>;
inputBox(): ComponentBuilder<InputBoxComponent>;
dashboardWidget(widgetId: string): ComponentBuilder<WidgetComponent>;
dashboardWebview(webviewId: string): ComponentBuilder<WebviewComponent>;
}
@@ -142,7 +143,7 @@ declare module 'sqlops' {
/**
* Properties representing the card component, can be used
* when using ModelBuilder to create the comopnent
* when using ModelBuilder to create the component
*/
export interface CardProperties {
label: string;
@@ -150,12 +151,21 @@ declare module 'sqlops' {
actions?: ActionDescriptor[];
}
export interface InputBoxProperties {
value?: string;
}
export interface CardComponent extends Component {
label: string;
value: string;
actions?: ActionDescriptor[];
}
export interface InputBoxComponent extends Component {
value: string;
onTextChanged: vscode.Event<any>;
}
export interface WidgetComponent extends Component {
widgetId: string;
}