Grid layout banner
Audience: CMS editors and developers.
Type: GridWrapperBanner.
This layout banner shows two columns. Each column contains nested banners.
This banner includes the common banner props.
Properties
id●required
string
CMS ID.
fullWidth●required
boolean
If true, the wrapper uses the full width without horizontal padding.
breakpoint●required
'mobile' | 'tablet'
Breakpoint at which the columns appear beside each other.
columnsWidth●required
'FIFTY_FIFTY' | 'SIXTY_FORTY' | 'FORTY_SIXTY' | 'SEVENTY_THIRTY' | 'THIRTY_SEVENTY'
Ratio of the left column width to the right column width.
leftColumnAlign●required
'TOP' | 'CENTER' | 'BOTTOM' | 'STRETCH'
Vertical alignment for the left column.
rightColumnAlign●required
'TOP' | 'CENTER' | 'BOTTOM' | 'STRETCH'
Vertical alignment for the right column.
reverseOnBreakpoint●required
boolean
Swap the column order at the breakpoint and at larger widths.
leftColumn●required
AnyBanner[]
Banners rendered in the left column.
rightColumn●required
AnyBanner[]
Banners rendered in the right column.
Behavior and limits
leftColumnandrightColumncan contain any banner type, including anotherGridWrapperBanner.- Limit nesting depth in code that uses this banner.
Example
const banner: GridWrapperBanner = {
typename: BannerTypename.GridWrapper,
id: 'b_123',
title: null,
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
fullWidth: false,
breakpoint: 'tablet',
columnsWidth: 'SIXTY_FORTY',
leftColumnAlign: 'TOP',
rightColumnAlign: 'TOP',
reverseOnBreakpoint: false,
leftColumn: [{ typename: BannerTypename.Textblock, id: 'x', title: null, titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, markdown: ['Left'], fullwidth: false } as any],
rightColumn: [{ typename: BannerTypename.Textblock, id: 'y', title: null, titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, markdown: ['Right'], fullwidth: false } as any]
};Last updated on