SectionSlidesTransformerFunction
Home > @gooddata/sdk-ui-dashboard > SectionSlidesTransformerFunction
SectionSlidesTransformerFunction interface
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.
Signature:
export interface SectionSlidesTransformerFunction<TWidget>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
breakUpSlide | (section: IDashboardLayoutSection<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) This transformer ís used to extract break up slide from current section. Break up slide is created from section title and description. This transformer only create slide when section has title or description. | |
containerSlide | (item: IDashboardLayoutItem<TWidget>, transform: (section: IDashboardLayoutSection<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) This is more complex transformer that is used to transform container item in the layout to a slide. Container item is transformed as a structured slide, but if it contains a visualization switcher, it is transformed to a flat list of visualizations that are part of container item. | |
containerSwitcherSlide | (item: IDashboardLayoutItem<TWidget>, transform: (section: IDashboardLayoutSection<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) This is more complex transformer that is used to transform container item in the layout to a slide. Container item is transformed as a structured slide, but if it contains a visualization switcher, switcher is spread into multiple slides where each slide contains one visualization from each switcher. | |
containsVisualisationSwitcher | (section: IDashboardLayoutSection<TWidget>) => boolean | (ALPHA) This function is used to determine if the section contains visualization switcher. | |
defaultItems | (section: IDashboardLayoutSection<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) Default transformer for the items. This is used as default transformation method for the items in section in case that no plugin override it. Can be used to provide default transformation for the items in custom plugin. | |
defaultSection | (section: IDashboardLayoutSection<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) Default transformer for the section. This is used as default transformation method for the section in case that no plugin override it. Can be used to provide default transformation for the section in custom plugin. | |
itemsSlide | (section: IDashboardLayoutSection<TWidget>, transform: (item: IDashboardLayoutItem<TWidget>) => IDashboardLayoutSection<TWidget>[]) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) This is helper function that is used to iterate all items in the section. On every item it calls provided transform function. This function is used to transform all items in the section. | |
switcherSlide | (item: IDashboardLayoutItem<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) This transformer is used to create multiple slides from switcher widget. Each slide contains one visualization that is part of the switcher. | |
widgetSlide | (item: IDashboardLayoutItem<TWidget>) => IDashboardLayoutSection<TWidget>[] | undefined | (ALPHA) This transformer is used to extract widget slide from current section and provided item. Widget slide is created from provided item. Widget slide always contains only one item that mean there will be one item on created slide. |