replaceInsightWidgetFilterSettings()
Home > @gooddata/sdk-ui-dashboard > replaceInsightWidgetFilterSettings
replaceInsightWidgetFilterSettings() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Creates the ChangeInsightWidgetFilterSettings command for FilterOpReplaceAll operation.
Dispatching this command will result in replacement of Insight widget's filter settings; this includes change of data set used for date filter, disabling date filtering, ignoring attribute filters that are defined on the dashboard for the widget.
Signature:
export declare function replaceInsightWidgetFilterSettings(ref: ObjRef, settings: Omit<FilterOpReplaceAll, "type">, correlationId?: string): ChangeInsightWidgetFilterSettings;
Parameters
Parameter | Type | Description |
---|---|---|
ref | ObjRef | reference of the insight widget to modify |
settings | Omit<FilterOpReplaceAll, "type"> | new filter settings to apply |
correlationId | string | (Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns: