Documentation
Getting Started
jqxSplitLayout represents a widget consisting of a moveable split bar(s) that divides a container's display area into two or more resizable panels.Every UI widget from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.
The first step is to create html page and add links to the JavaScript files and CSS dependencies to your project. The jqxSplitLayout widget requires the following files:
<head><link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css"/><script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script><script type="text/javascript" src="../../jqwidgets/jqxsplitlayout.js"></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-2FX5PV9DNT"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-2FX5PV9DNT');</script></head>
The next step is to create html element within the body of the html document.
<div id='jqxSplitLayout'></div>
The last step is to initialize the widget by adding the following script to the html document:
<script type="text/javascript"> window.onload = () => { const layout = new jqxSplitLayout("#jqxSplitLayout", { dataSource: [ { content: "Item 1" }, { content: "Item 2" }, { orientation: "horizontal", items: [ { content: "Item 3" }, { content: "Item 4" } ] } ] }); }</script>
To call a function (method), you need to pass the method name and parameters (if any) in the jqxSplitLayout's constructor.
$("#jqxSplitLayout").jqxSplitLayout('refresh');
$("#jqxSplitLayout").jqxSplitLayout({ dataSource; [ { content: "Item 1" }, { content: "Item 2" }, { orientation: "horizontal", items: [ { content: "Item 3" }, { content: "Item 4" } ] } ] });
var dataSource = $("#jqxSplitLayout").jqxSplitLayout('dataSource');
Basic SplitLayout Sample
<!DOCTYPE html><html lang="en"><head> <title id="Description">In this example is shown how to create a basic Split layout.</title> <link rel="stylesheet" href="../../../jqwidgets-src/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../jqwidgets-src/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets-src/jqxsplitlayout.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript"> $(document).ready(function () { var layout = new jqxSplitLayout("#jqxSplitLayout", { dataSource: [ { content: "Item 1" }, { content: "Item 2" }, { orientation: "horizontal", items: [ { content: "Item 3" }, { content: "Item 4" } ] } ] }) }); </script><script async src="https://www.googletagmanager.com/gtag/js?id=G-2FX5PV9DNT"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-2FX5PV9DNT');</script></head><body> <div>This example shows how to create a basic split layout</div><br /><br /> <div id="jqxSplitLayout"></div></body></html>