jQWidgets Forums

jQuery UI Widgets Forums Layouts Splitter Setting maximum size

This topic contains 2 replies, has 2 voices, and was last updated by  Nadezhda 10 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Setting maximum size #66098

    mdmings517
    Participant

    Is there a way to set the max size of a panel like there is for the min size? Also, in documentation there is no reference for min property. Did I miss something?

    Setting maximum size #66099

    mdmings517
    Participant

    I am trying to achieve a three panel vertical layout where the first panel can only expand to a certain width and the third panel is static

    Setting maximum size #66122

    Nadezhda
    Participant

    Hello mdmings517,

    In the API documentation you can find the reference to ‘min’ field on ‘panels’ property(the jsfiddle example shows how to use ‘min’ property). Here is an example with three vertical panels which shows how to set the third panel as not collapsible:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <title></title>
        <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
        <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxsplitter.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $('#mainSplitter').jqxSplitter({ width: 605, height: 400, panels: [{ size: 300 }] });
                $('#leftSplitter').jqxSplitter({ width: 305, height: 400, panels: [{ size: 150 }] });
            });
        </script>
    </head>
    <body>
        <div id="mainSplitter">
            <div>
                <div id="leftSplitter">
                    <div>
                        Left Panel
                    </div>
                    <div>
                        Middle Panel
                    </div>
                </div>
            </div>
            <div>
                Right Panel
            </div>
        </div>
    </body>
    </html>

    Best Regards,
    Nadezhda

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.