IWithLoadingEvents
export interface IWithLoadingEvents<TProps>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(error: GoodDataSdkError, props: TProps) => void | (Optional) If specified, this function will be called in case loading runs into an error. | ||
(exportFunction: IExportFunction, props: TProps) => void | (Optional) Called when loading finishes and it is possible to export the underlying data. Function that does the export will be provided on the callback. | ||
(isLoading: boolean, props: TProps) => void | (Optional) Called when loading starts and finishes, indicating the current state using the | ||
(result: DataViewFacade, props: TProps) => void | (Optional) Called when loading finishes. | ||
(props: TProps) => void | (Optional) Called when loading starts. |
Property details
IWithLoadingEvents.onErrorproperty
If specified, this function will be called in case loading runs into an error.
onError?: (error: GoodDataSdkError, props: TProps) => void;
IWithLoadingEvents.onExportReadyproperty
Called when loading finishes and it is possible to export the underlying data. Function that does the export will be provided on the callback.
onExportReady?: (exportFunction: IExportFunction, props: TProps) => void;
IWithLoadingEvents.onLoadingChangedproperty
Called when loading starts and finishes, indicating the current state using the isLoading parameter.
onLoadingChanged?: (isLoading: boolean, props: TProps) => void;
IWithLoadingEvents.onLoadingFinishproperty
Called when loading finishes.
onLoadingFinish?: (result: DataViewFacade, props: TProps) => void;
IWithLoadingEvents.onLoadingStartproperty
Called when loading starts.
onLoadingStart?: (props: TProps) => void;