insightSetLayers()
Home > @gooddata/sdk-model > insightSetLayers
insightSetLayers() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Gets a new insight that 'inherits' all data from the provided insight but has different layers.
Signature:
export declare function insightSetLayers<T extends IInsightDefinition>(insight: T, layers?: IInsightLayerDefinition[]): T;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
insight |
T |
insight to work with |
|
layers |
(Optional) new layers to apply |
Returns:
T
always new instance
Remarks
New layers will be used in the new insight as-is, no merging with existing layers.