useCustomWidgetExecutionDataView()
Home > @gooddata/sdk-ui-dashboard > useCustomWidgetExecutionDataView
useCustomWidgetExecutionDataView() function
This hook provides an easy way to read a data view from a custom widget. It resolves the appropriate filters for the widget based on the filters currently set on the whole dashboard.
Signature:
export declare function useCustomWidgetExecutionDataView({ widget, execution, onCancel, onError, onLoading, onPending, onSuccess, }: IUseCustomWidgetExecutionDataViewConfig & UseCustomWidgetExecutionDataViewCallbacks): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
Parameters
Parameter | Type | Description |
---|---|---|
{ widget, execution, onCancel, onError, onLoading, onPending, onSuccess, } | IUseCustomWidgetExecutionDataViewConfig & UseCustomWidgetExecutionDataViewCallbacks |
Returns: