addSectionToPath()
Home > @gooddata/sdk-ui-dashboard > IFluidLayoutCustomizer > addSectionToPath
IFluidLayoutCustomizer.addSectionToPath() method
Adds a new section with one or more custom widgets onto the layout even to the nested layout.
Signature:
addSectionToPath(sectionPath: ILayoutSectionPath, section: IDashboardLayoutSection<ICustomWidget>): IFluidLayoutCustomizer;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| sectionPath | path in layout to add the new section at | |
| section | section to add; note: customizer will make a deep copy of the item before adding it onto a dashboard. At this moment, the newly added items are read-only. | 
Returns:
Remarks
The section to add must not be empty - it must contain at least one item. Attempts to add empty sections will be ignored and warnings will be reported.