Adding new aria properties to extHostModelView (#6881)

This commit is contained in:
Benjin Dubishar
2019-08-23 10:37:14 -07:00
committed by GitHub
parent bb4248c459
commit 5b75061bf0

View File

@@ -1153,6 +1153,20 @@ class TableComponentWrapper extends ComponentWrapper implements azdata.TableComp
this.setProperty('title', v);
}
public get ariaRowCount(): number {
return this.properties['ariaRowCount'];
}
public set ariaRowCount(v: number) {
this.setProperty('ariaRowCount', v);
}
public get ariaColumnCount(): number {
return this.properties['ariaColumnCount'];
}
public set ariaColumnCount(v: number) {
this.setProperty('ariaColumnCount', v);
}
public get moveFocusOutWithTab(): boolean {
return this.properties['moveFocusOutWithTab'];
}
@@ -1324,6 +1338,13 @@ class ButtonWrapper extends ComponentWrapper implements azdata.ButtonComponent {
this.setProperty('title', v);
}
public get ariaLabel(): string {
return this.properties['ariaLabel'];
}
public set ariaLabel(v: string) {
this.setProperty('ariaLabel', v);
}
public get onDidClick(): vscode.Event<any> {
let emitter = this._emitterMap.get(ComponentEventType.onDidClick);
return emitter && emitter.event;