add missing get and set in extHostModelView for title and validationErrorMessage (#13095)

This commit is contained in:
Kim Santiago
2020-10-27 15:30:35 -07:00
committed by GitHub
parent f9d34cb18b
commit 4587fd06c3

View File

@@ -973,6 +973,13 @@ class InputBoxWrapper extends ComponentWrapper implements azdata.InputBoxCompone
this.setProperty('placeHolder', v);
}
public get title(): string {
return this.properties['title'];
}
public set title(v: string) {
this.setProperty('title', v);
}
public get rows(): number {
return this.properties['rows'];
}
@@ -1022,6 +1029,13 @@ class InputBoxWrapper extends ComponentWrapper implements azdata.InputBoxCompone
this.setProperty('stopEnterPropagation', v);
}
public get validationErrorMessage(): string {
return this.properties['validationErrorMessage'];
}
public set validationErrorMessage(v: string) {
this.setProperty('validationErrorMessage', v);
}
public get onTextChanged(): vscode.Event<any> {
let emitter = this._emitterMap.get(ComponentEventType.onDidChange);
return emitter && emitter.event;