addSection()
Home > @gooddata/sdk-ui-dashboard > IFluidLayoutCustomizer > addSection
IFluidLayoutCustomizer.addSection() method
Adds a new section with one or more custom widgets onto the fluid layout.
Signature:
addSection(sectionIdx: number, section: IDashboardLayoutSection<ICustomWidget>): IFluidLayoutCustomizer;
Parameters
Parameter | Type | Description |
---|---|---|
sectionIdx | number | index to add the new section at |
section | IDashboardLayoutSection<ICustomWidget> | 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.