jQuery UI Widgets › Forums › General Discussions › Layouts › Splitter › Is Splitter only limited to 2 panels?
Tagged: html5 splitter
This topic contains 6 replies, has 3 voices, and was last updated by Peter Stoev 11 years, 7 months ago.
-
Author
-
I would like to have 4 panels with splitter functionality. Are we only limited to two panels when using splitter?
Hi bobsov,
An instance of jqxSplitter splits 2 panels. However, you can nest multiple Splitters as shown in the Splitter’s Demos. Ex: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxsplitter/defaultfunctionality.htm?arctic
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter
The demo you refer to shows how a horizontal splitter (contentSplitter) is nested in the righthand panel of a vertical splitter (mainSplitter). That use case works fine. But if the use case is that you want to have a west-center-east or north-center-south layout, then you want both splitters to change the size of the center panel (and collapse the north or south panel) only. Or put differently, when one splitter-bar is moved all others stay put, which is a usual behaviour if you build a workbench kind of application. But with nested splitters it doesn’t work like that. For example try resizing panel 4 using the splitter on its top in the demo . Other frameworks allow you to define more that two panels inside a splitter. It would be nice to have that in jQWidgets too.
The link was removed. I meant demo http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxsplitter/index.htm#demos/jqxsplitter/nested-splitters.htm
Hi pakbal,
You can nest as many Splitters as you wish within one splitter. Each Splitter can have up to 2 Panels. That is the widget’s behavior by design. At present, there are no plans for future design changes about that widget.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter
So there is no way we are going to see a jQWidgets widget that works like =link=
Kind regards,
Paul
Hi pakbal,
jqxSplitter works in the way demonstrated on our Live Demos. If you can’t find a demo about a functionality, then most probably it is not supported.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.