replaceInsightWidgetFilterSettings()
Home > @gooddata/sdk-ui-dashboard > replaceInsightWidgetFilterSettings
replaceInsightWidgetFilterSettings() function
This API is provided as a beta 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 common date filter, disabling common date filtering, ignoring attribute/date 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 |
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: