Skip to content

SplitLayout

Divides the available space into two resizable panels: a master (primary) panel and a detail (secondary) panel.

new SplitLayout(masterComponent, detailComponent)
PropertyTypeDefaultDescription
idStringOptional component ID
masterComponentPrimary panel (left / top)
detailComponentSecondary panel (right / bottom)
orientationOrientationhorizontal (side by side) or vertical (top/bottom)
variantSplitLayoutVariantVisual style (minimal, etc.)
fullWidthbooleanfalseStretches the layout to full width
styleStringInline CSS
cssClassesStringCSS class names
SplitLayout.builder()
.master(new Text("Navigation / list"))
.detail(new Text("Detail view"))
.orientation(Orientation.horizontal)
.build()
SplitLayout.builder()
.master(new Text("Top content"))
.detail(new Text("Bottom content"))
.orientation(Orientation.vertical)
.build()
SplitLayout.builder()
.master(masterPanel)
.detail(detailPanel)
.variant(SplitLayoutVariant.minimal)
.fullWidth(true)
.build()

SplitLayout is ideal for list-detail UIs where the user selects an item on one side and sees its detail on the other. For an integrated master-detail pattern with row selection wired automatically, use MasterDetailLayout instead.