addNestedLayoutSectionItem()
Home > @gooddata/sdk-ui-dashboard > addNestedLayoutSectionItem
addNestedLayoutSectionItem() 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.
Creates the AddSectionItems command.
Signature:
export declare function addNestedLayoutSectionItem(itemPath: ILayoutItemPath, item: DashboardItemDefinition, autoResolveDateFilterDataset?: boolean, correlationId?: string): AddSectionItems;
Parameters
Parameter | Type | Description |
---|---|---|
itemPath | ILayoutItemPath | path to which the new item should be added |
item | DashboardItemDefinition | definition of the new item. |
autoResolveDateFilterDataset | boolean | (Optional) specify whether dashboard should auto-resolve date dataset to use for date filtering of KPI and insight widgets; default is disabled meaning date filtering will be enabled only for those KPI or Insight widgets that already specify dateDataset. |
correlationId | string | (Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns:
Remarks
Dispatching this command will result in addition of a new item into the existing section. This item may be a placeholder for KPI or insight, an actual dashboard widget or a previously stashed dashboard item.