mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
Add focus function for modelview components (#8348)
* Add focus method for modelview components * Remove focus properties from table and radiobutton * Fix break
This commit is contained in:
@@ -252,10 +252,6 @@ export default class TableComponent extends ComponentBase implements IComponent,
|
||||
this._table.ariaRole = this.ariaRole;
|
||||
}
|
||||
|
||||
if (this.focused) {
|
||||
this._table.focus();
|
||||
}
|
||||
|
||||
if (this.updateCells !== undefined) {
|
||||
this.updateTableCells(this.updateCells);
|
||||
}
|
||||
@@ -368,14 +364,6 @@ export default class TableComponent extends ComponentBase implements IComponent,
|
||||
return this.getPropertyOrDefault<azdata.TableComponentProperties, boolean>((props) => props.moveFocusOutWithTab, false);
|
||||
}
|
||||
|
||||
public get focused(): boolean {
|
||||
return this.getPropertyOrDefault<azdata.RadioButtonProperties, boolean>((props) => props.focused, false);
|
||||
}
|
||||
|
||||
public set focused(newValue: boolean) {
|
||||
this.setPropertyFromUI<azdata.RadioButtonProperties, boolean>((properties, value) => { properties.focused = value; }, newValue);
|
||||
}
|
||||
|
||||
public get updateCells(): azdata.TableCell[] {
|
||||
return this.getPropertyOrDefault<azdata.TableComponentProperties, azdata.TableCell[]>((props) => props.updateCells, undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user