useInsightWidgetDataView()
Home > @gooddata/sdk-ui-dashboard > useInsightWidgetDataView
useInsightWidgetDataView() function
This hook provides an easy way to read a data view from insight widget.
Signature:
export declare function useInsightWidgetDataView({ insightWidget, onCancel, onError, onLoading, onPending, onSuccess, }: IUseInsightWidgetDataView & UseInsightWidgetInsightDataViewCallbacks): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| { insightWidget, onCancel, onError, onLoading, onPending, onSuccess, } | IUseInsightWidgetDataView & UseInsightWidgetInsightDataViewCallbacks | 
Returns: