SplitLayout
Divides the available space into two resizable panels: a master (primary) panel and a detail (secondary) panel.
Basic usage
Section titled “Basic usage”new SplitLayout(masterComponent, detailComponent)Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
id | String | — | Optional component ID |
master | Component | — | Primary panel (left / top) |
detail | Component | — | Secondary panel (right / bottom) |
orientation | Orientation | — | horizontal (side by side) or vertical (top/bottom) |
variant | SplitLayoutVariant | — | Visual style (minimal, etc.) |
fullWidth | boolean | false | Stretches the layout to full width |
style | String | — | Inline CSS |
cssClasses | String | — | CSS class names |
Horizontal split (default)
Section titled “Horizontal split (default)”SplitLayout.builder() .master(new Text("Navigation / list")) .detail(new Text("Detail view")) .orientation(Orientation.horizontal) .build()Vertical split
Section titled “Vertical split”SplitLayout.builder() .master(new Text("Top content")) .detail(new Text("Bottom content")) .orientation(Orientation.vertical) .build()Minimal variant
Section titled “Minimal variant”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.