newReportContentPageFromLayout()
Home > @gooddata/sdk-model > newReportContentPageFromLayout
newReportContentPageFromLayout() 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.
Clones a report page into a page instance embeddable in template/report content.
Signature:
export declare function newReportContentPageFromLayout(page: IReportPageLayout | IReportPageLayoutDefinition, localIdentifier?: string): IReportContentPage;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
page | ||
|
localIdentifier |
string |
(Optional) |
Returns:
Remarks
The body is deep-copied and detached from the source page — no reference is kept. Slot localIdentifiers (and the layout slotIds pointing at them) are prefixed with the page-instance localIdentifier, so one page used repeatedly in the same content stays unique.