Skip to main content

SplitView

SplitView | individual options within the Select component shadow

The Split view element is a versatile component that allows you to create a split view with two or more sections. Provides a divider slider that allows you to dynamically resize sections. Two orientations are supported - vertical and horizontal, and nesting another SplitView to create more complex views.

Basic Usage

Vertical SplitView

Two orientations are supported. Add the vertical attribute to display a vertical SplitView.

Min/Max

Adding the min and max properties with values "0" to "100" will limit the range of motion of the separator.

Disabled

Adding the disabled attribute disables the ability to scroll the separator.

Nested SplitView

By nesting another SplitView, more complex views can be created.

Editing styles

Attributes and Properties

disabled

DescriptionIf true, the option to scroll the separator is deactivated
Attributedisabled
Typeboolean
Defaultfalse

horizontal

DescriptionIf true, the orientation of the separator changes to horizontal.
Attributehorizontal
Typeboolean
Defaultfalse

initial

DescriptionDefines the initial position of the slider.
Attributeinitial
Typenumber | undefined
Defaultundefined

max

DescriptionDefines the value of the maximum possible separator position.
Attributemax
Typenumber | undefined
Defaultundefined

min

DescriptionDefines the value of the minimum possible separator position.
Attributemin
Typenumber | undefined
Defaultundefined

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

NameDescription
dividerRefers to the div element of the separator.

CSS Custom Properties

NameDescription
--wj-split-view-divider-backgroundDefines the background of the element.
--wj-split-view-divider-sizeAdjusts the width/height of the separator.
--wj-split-view-divider-widthSpecifies the thickness of the separator.
--wj-split-view-maxRepresents the maximum allowed size (in percent) for the panel.
--wj-split-view-minRepresents the minimum allowed size (in percent) for the panel.

Slots

NameDescription
dividerThe contents shall be placed in the separator.
endThe content is placed to the right of the separator in the LTR and to the left in the RTL.
startThe content is placed to the left of the separator in the LTR and to the right in the RTL.