insightSetParameters()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Gets a new insight that ‘inherits’ all data from the provided insight but has different parameter values.
export declare function insightSetParameters<T extends IInsightDefinition>(insight: T, parameters?: IInsightParameterValue[]): T;
Parameters
Parameter | Type | Description |
|---|---|---|
insight | T | insight to work with |
parameters | (Optional) parameter values to apply to the insight (defaults to empty array) |
Returns
T
always a new instance
Remarks
New parameter values will be used in the new insight as-is, no merging with existing values.