newDashboardSection()
Home > @gooddata/sdk-ui-dashboard > newDashboardSection
newDashboardSection() function
Creates a new dashboard section.
Signature:
export declare function newDashboardSection<T extends ReadonlyArray<ExtendedDashboardItem<unknown>>>(titleOrHeader: IDashboardLayoutSectionHeader | string | undefined, ...items: T): IDashboardLayoutSection<ExtendedDashboardItemTypes<T>>;
Parameters
Parameter |
Type |
Description |
---|---|---|
titleOrHeader |
IDashboardLayoutSectionHeader | string | undefined |
header to use for this section (if any); for convenience, you may provide just string containing the title instead of specifying full header. if you specify empty string for title, then there will be no header. |
items |
T |
dashboard items to include in the section; note: a deep copy of each item will be used on the new section |
Returns: