Add ModelView ImageComponent (#7106)

* Add ModelView ImageComponent

* Remove duplicate property declarations

* Fix sqlops too
This commit is contained in:
Charles Gagnon
2019-09-08 18:29:30 -07:00
committed by GitHub
parent 789e26ae60
commit aeaac4bc17
6 changed files with 149 additions and 40 deletions

View File

@@ -627,9 +627,21 @@ declare module 'sqlops' {
}
export interface ButtonProperties extends ComponentProperties, ComponentWithIcon {
/**
* The label for the button
*/
label?: string;
/**
* Whether the button opens the file browser dialog
*/
isFile?: boolean;
/**
* The content of the currently selected file
*/
fileContent?: string;
/**
* The title for the button. This title will show when hovered over
*/
title?: string;
fileType?: string;
}
@@ -665,8 +677,6 @@ declare module 'sqlops' {
}
export interface HyperlinkComponent extends Component, HyperlinkComponentProperties {
label: string;
url: string;
}
export interface InputBoxComponent extends Component, InputBoxProperties {
@@ -684,8 +694,6 @@ declare module 'sqlops' {
}
export interface DropDownComponent extends Component, DropDownProperties {
value: string | CategoryValue;
values: string[] | CategoryValue[];
onValueChanged: vscode.Event<any>;
}
@@ -700,8 +708,6 @@ declare module 'sqlops' {
}
export interface ListBoxComponent extends Component, ListBoxProperties {
selectedRow?: number;
values: string[];
onRowSelected: vscode.Event<any>;
}
@@ -765,19 +771,6 @@ declare module 'sqlops' {
}
export interface ButtonComponent extends Component, ButtonProperties {
/**
* The label for the button
*/
label: string;
/**
* The title for the button. This title will show when it hovers
*/
title: string;
/**
* Icon Path for the button.
*/
iconPath: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
/**
* An event called when the button is clicked
*/