useCustomWidgetInsightDataView()
Home > @gooddata/sdk-ui-dashboard > useCustomWidgetInsightDataView
useCustomWidgetInsightDataView() function
This hook provides an easy way to read a data view for an insight 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 useCustomWidgetInsightDataView({ widget, insight, onCancel, onError, onLoading, onPending, onSuccess, }: IUseCustomWidgetInsightDataViewConfig & UseCustomWidgetInsightDataViewCallbacks): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
Parameters
Parameter | Type | Description |
---|---|---|
{ widget, insight, onCancel, onError, onLoading, onPending, onSuccess, } | IUseCustomWidgetInsightDataViewConfig & UseCustomWidgetInsightDataViewCallbacks |
Returns: