insightSetFilters()
Home > @gooddata/sdk-model > insightSetFilters
insightSetFilters() function
Gets a new insight that 'inherits' all data from the provided insight but has different filters.
Signature:
export declare function insightSetFilters<T extends IInsightDefinition>(insight: T, filters?: IFilter[]): T;
Parameters
Parameter |
Type |
Description |
---|---|---|
insight |
T |
insight to work with |
filters |
IFilter[] |
(Optional) new filters to apply |
Returns:
T
always new instance
Remarks
New filters will be used in the new insight as-is, no merging with existing filters.