JavaScript/jQuery Splitter - items
An array of items (panes) displayed by the UI component.
The items array can contain:
- Objects with fields described in this section.
- Objects with any other fields. In this case, specify the itemTemplate.
As an alternative to items, you can use the dataSource property. It accepts the DataSource object, whose underlying stores supply an API that allows you to update individual items without reassigning the entire item collection.
collapsed
Specifies whether an item (pane) is initially collapsed.
collapsedSize
Specifies the size of a collapsible item (pane) when collapsed in pixels or as a percentage.
collapsible
Specifies whether an item (pane) is collapsible.

To collapse a pane, you can also double-click the separator bar.
maxSize
Specifies the maximum size of an item (pane) in pixels or as a percentage.
- $(() => {
- $("#splitter").dxSplitter({
- items: [
- {
- // ...
- maxSize: "500px",
- }
- ],
- });
- });
minSize
Specifies the minimum size of an item (pane) in pixels or as a percentage.
- $(() => {
- $("#splitter").dxSplitter({
- items: [
- {
- // ...
- minSize: "30%",
- }
- ],
- });
- });
size
Specifies the initial size of an item (pane) in pixels or as a percentage. The size changes after any layout alteration.
- $(() => {
- $("#splitter").dxSplitter({
- items: [
- {
- // ...
- size: "50%",
- }
- ],
- });
- });
If you do not specify pane sizes, the UI component splits up the panes automatically with even distribution.
splitter
Specifies a splitter inside an item (pane).
Use this property to make the item a nested Splitter UI component.

- $(() => {
- $("#splitter").dxSplitter({
- orientation: "vertical",
- items: [{
- text: "Top Panel"
- },
- {
- splitter: {
- items: [{
- text: "Nested Left Panel"
- },{
- text: "Nested Central Panel"
- },{
- text: "Nested Right Panel"
- }
- ]
- }
- }
- ]
- });
- });
template
Specifies a template that should be used to render this item only.
This property supports the following values:
- A template container as a jQuery object or DOM Node
- A function that returns a template container (as a jQuery object or DOM node)
For more information about templates, refer to the following help topic: DevExtreme jQuery - Custom Templates.
- $(function() {
- $("#splitterContainer").dxSplitter({
- // ...
- items: [
- {
- // ...
- template: '<div>Custom Item</div>'
- }
- ]
- });
- });
See Also
text
Specifies text displayed for the UI component item.
If you use both this property and a template, the template overrides the text.
