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:
Charles Gagnon
2019-11-15 17:36:55 -08:00
committed by GitHub
parent d6ef42c8b0
commit ae8304fc33
17 changed files with 62 additions and 48 deletions

7
src/sql/azdata.d.ts vendored
View File

@@ -2646,6 +2646,11 @@ declare module 'azdata' {
* Run the component's validations
*/
validate(): Thenable<boolean>;
/**
* Focuses the component.
*/
focus(): Thenable<void>;
}
export interface FormComponent {
@@ -3088,7 +3093,6 @@ declare module 'azdata' {
ariaRowCount?: number;
ariaColumnCount?: number;
ariaRole?: string;
focused?: boolean;
updateCells?: TableCell[];
moveFocusOutWithTab?: boolean; //accessibility requirement for tables with no actionable cells
}
@@ -3123,7 +3127,6 @@ declare module 'azdata' {
label?: string;
value?: string;
checked?: boolean;
focused?: boolean;
}
export interface TextComponentProperties extends ComponentProperties, TitledComponentProperties {