mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 09:35:38 -05:00
Clean up Loading Component typings (#13785)
* Clean up Loading Component typings * add properties to impl
This commit is contained in:
15
src/sql/azdata.d.ts
vendored
15
src/sql/azdata.d.ts
vendored
@@ -3400,9 +3400,22 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface LoadingComponentProperties extends ComponentProperties {
|
||||
/**
|
||||
* Whether to show the loading spinner instead of the contained component. True by default
|
||||
*/
|
||||
loading?: boolean;
|
||||
/**
|
||||
* Whether to show the loading text next to the spinner
|
||||
*/
|
||||
showText?: boolean;
|
||||
/**
|
||||
* The text to display while loading is set to true
|
||||
*/
|
||||
loadingText?: string;
|
||||
/**
|
||||
* The text to display while loading is set to false. Will also be announced through screen readers
|
||||
* once loading is completed.
|
||||
*/
|
||||
loadingCompletedText?: string;
|
||||
}
|
||||
|
||||
@@ -3595,7 +3608,7 @@ declare module 'azdata' {
|
||||
* Component used to wrap another component that needs to be loaded, and show a loading spinner
|
||||
* while the contained component is loading
|
||||
*/
|
||||
export interface LoadingComponent extends Component {
|
||||
export interface LoadingComponent extends Component, LoadingComponentProperties {
|
||||
/**
|
||||
* Whether to show the loading spinner instead of the contained component. True by default
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user