The igc-splitter component provides a resizable split-pane layout that divides the view into two panels — start and end — separated by a draggable bar.

Panels can be resized by dragging the bar, using keyboard shortcuts, or collapsed/expanded using the built-in collapse buttons or the programmatic toggle() API. Nested splitters are supported for more complex layouts.

Slots
start — Content projected into the start (left/top) panel.
end — Content projected into the end (right/bottom) panel.
CSS Parts
splitter-bar — The resizable bar element between the two panels.
drag-handle — The drag handle icon/element on the splitter bar.
start-pane — The container for the start panel content.
end-pane — The container for the end panel content.
start-collapse-btn — The button to collapse the start panel.
end-collapse-btn — The button to collapse the end panel.
start-expand-btn — The button to expand the start panel when collapsed.
end-expand-btn — The button to expand the end panel when collapsed.

When true, prevents the user from collapsing either pane. This also hides the expand/collapse buttons on the splitter bar.

disableCollapse: boolean

When true, prevents the user from resizing the panes by dragging the splitter bar or using keyboard shortcuts. This also hides the drag handle on the splitter bar.

disableResize: boolean

The maximum size of the end pane.

endMaxSize: string

The minimum size of the end pane.

endMinSize: string

The size of the end pane.

endSize: string

When true, hides the expand/collapse buttons on the splitter bar.

Note that the buttons will also be hidden if disable-collapse is true or if a pane is currently collapsed.

hideCollapseButtons: boolean

When true, hides the drag handle on the splitter bar.

Note that the drag handle will also be hidden if disable-resize is true.

hideDragHandle: boolean

The orientation of the splitter, which determines the direction of resizing and collapsing.

orientation: SplitterOrientation

The maximum size of the start pane.

startMaxSize: string

The minimum size of the start pane.

startMinSize: string

The size of the start pane.

startSize: string

Toggles the collapsed state of the specified pane.

toggle(position: PanePosition): void

Parameters

  • position: PanePosition

Returns void

Emitted once when a resize operation completes.

onResizeEnd(args: CustomEvent<IgrSplitterResizeEventArgs>): void

Parameters

Returns void

Emitted once when a resize operation begins (pointer drag or keyboard).

onResizeStart(args: CustomEvent<IgrSplitterResizeEventArgs>): void

Parameters

Returns void

Emitted continuously while a pane is being resized.

onResizing(args: CustomEvent<IgrSplitterResizeEventArgs>): void

Parameters

Returns void