insightLayers()
Home > @gooddata/sdk-model > insightLayers
insightLayers() 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 layers from insight definition.
Signature:
export declare function insightLayers(insight: IInsightDefinition): IInsightLayerDefinition[];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
insight |
insight to get layers from |
Returns:
array of layers or empty array if none defined