added text component (#1462)

* added text component
This commit is contained in:
Leila Lali
2018-05-22 16:12:02 -07:00
committed by GitHub
parent 4bfc549927
commit 1461929f86
6 changed files with 109 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ declare module 'sqlops' {
inputBox(): ComponentBuilder<InputBoxComponent>;
checkBox(): ComponentBuilder<CheckBoxComponent>;
radioButton(): ComponentBuilder<RadioButtonComponent>;
text(): ComponentBuilder<TextComponent>;
button(): ComponentBuilder<ButtonComponent>;
dropDown(): ComponentBuilder<DropDownComponent>;
dashboardWidget(widgetId: string): ComponentBuilder<WidgetComponent>;
@@ -262,6 +263,10 @@ declare module 'sqlops' {
checked?: boolean;
}
export interface TextComponentProperties {
value?: string;
}
export interface DropDownProperties {
value?: string;
values?: string[];
@@ -279,6 +284,10 @@ declare module 'sqlops' {
onDidActionClick: vscode.Event<ActionDescriptor>;
}
export interface TextComponent extends Component {
value: string;
}
export interface InputBoxComponent extends Component, InputBoxProperties {
onTextChanged: vscode.Event<any>;
}