diff --git a/src/sql/azdata.proposed.d.ts b/src/sql/azdata.proposed.d.ts index f2f285c698..9420e37e3d 100644 --- a/src/sql/azdata.proposed.d.ts +++ b/src/sql/azdata.proposed.d.ts @@ -531,6 +531,10 @@ declare module 'azdata' { export interface InputBoxProperties extends ComponentProperties { validationErrorMessage?: string; readOnly?: boolean; + /** + * This title will show when hovered over + */ + title?: string; } export interface CheckBoxProperties { diff --git a/src/sql/workbench/browser/modelComponents/inputbox.component.ts b/src/sql/workbench/browser/modelComponents/inputbox.component.ts index 13288704ea..9df7c0ab04 100644 --- a/src/sql/workbench/browser/modelComponents/inputbox.component.ts +++ b/src/sql/workbench/browser/modelComponents/inputbox.component.ts @@ -245,6 +245,11 @@ export default class InputBoxComponent extends ComponentBase((props, value) => props.placeHolder = value, newValue); } + public get title(): string { + return this.getPropertyOrDefault((props) => props.title, ''); + } + + public set title(newValue: string) { + this.setPropertyFromUI((props, value) => props.title = value, newValue); + } + public set columns(newValue: number) { this.setPropertyFromUI((props, value) => props.columns = value, newValue); }