RayCraftDocs
v1.0.3 raycraft.dev
On this page

Splitter

Free

Two resizable panes. Drag the bar with the mouse or touch, or focus it and use the arrow keys (Shift for bigger steps, Home and End for the limits). With PersistKey the position is remembered in local storage.

Example

Splitter control

Parameters

ParameterTypeDescription
ActivePaneSplitterPaneThe pane shown in the narrow single-pane mode (default First). Two-way.
ClassstringExtra CSS classes added to the root element.
CollapsedSplitterPaneThe collapsed pane (None, First or Second). Two-way.
CollapsiblePaneSplitterPaneThe pane that Enter or a double click on the bar collapses (default none).
FirstRenderFragmentContent of the first pane.
MinSizeDoubleSmallest size of either pane in percent.
PersistKeystringRemembers the split (and the collapsed pane) in local storage under this name and restores it next time.
SecondRenderFragmentContent of the second pane.
SingleBelowBreakpoint?Below this breakpoint only the active pane is shown and the bar is hidden.
SizeDoubleSize of the first pane in percent. Use with @bind-Size.
StylestringInline style added to the root element.
VerticalboolStacks the panes top to bottom.

Events

EventTypeDescription
ActivePaneChangedEventCallback<SplitterPane>
CollapsedChangedEventCallback<SplitterPane>
SizeChangedEventCallback<Double>Raised when the bar is moved.

Package

Splitter is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.