Open In App
Related Articles

jQWidgets jqxSplitter panels Property

Improve Article
Save Article
Like Article

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxSplitter is used for representing a widget that consists of a moveable split bar(s) that divides the display area of the container into two or more resizable and collapsible panels.

The panels property is used for setting or getting the panels property for the specified jqxSplitter. Here each panel is representing an object with the below specified fields.

  • size: It is used for setting size of the panel.
  • min: It is used for setting the minimum size of the panel.
  • collapsible: It is used for setting whether the panel is collapsible or not.
  • collapsed: It is used for setting whether the panel is collapsed or not.


  • For setting the panels property:

        panels: [{ size: 200 },{ min: 50 }]

  • For getting the panels property:

    var disabled = $('#jqxSplitter').jqxSplitter('panels');

Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css”/>
<script type=”text/javascript” src=”scripts/jquery.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxbuttons.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxsplitter.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxscrollbar.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxpanel.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>

Example: The below example illustrates the jQWidgets jqxSplitter panels property. In the below example, the value of the panels property has been set as [{ size: 200 },{ min: 50 }].


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
        <h1 style="color:green;">
            jQWidgets jqxSplitter panels Property
        <div id='jqx_Splitter'>
            <div style="background-color: #006400">
            <div style="background-color: #000000">
        <script type="text/javascript">
            $(document).ready(function () {
                    width: 300,
                    height: 200,
                    panels: [{ size: 200 },
                             { min: 50 }]



Last Updated : 19 Nov, 2021
Like Article
Save Article
Similar Reads
Related Tutorials