jQuery UI Widgets Forums Dialogs and Notifications Window window open but collapsed

This topic contains 4 replies, has 2 voices, and was last updated by  pepe 8 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • window open but collapsed #86602

    pepe
    Participant

    there is a possibility that pressing the button displays the window but collapsed?

    <!doctype html>
    <html>
    <head>
    <meta charset=”utf-8″>
    <title>Documento sin título</title>

    <link rel=”stylesheet” href=”../../jqwidgets/styles/jqx.base.css” type=”text/css”/>

    <script type=”text/javascript” src=”../../jqwidgets/scripts/jquery-1.11.1.min.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxwindow.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxbuttons.js”></script>

    <script type=”text/javascript”>

    $(document).ready(function () {

    $(‘#jqxwindow’).jqxWindow({
    autoOpen: false,
    showCollapseButton: true,
    collapsed: true,
    });

    $(“#jqxbutton”).jqxButton({
    width: 150,
    height: 30
    });

    $(‘#jqxbutton’).click(function () {
    $(“#jqxwindow”).jqxWindow(‘open’);
    });

    });
    </script>
    </head>

    <body>

    <div id=’jqxwindow’>
    <div>Header</div>
    <div>Content</div>
    </div>

    <input type=”button” style=”margin: 50px;” id=”jqxbutton” value=”Open the window” />

    </body>
    </html>

    window open but collapsed #86610

    Hristo
    Participant

    Hello pepe,

    If you would like to collapse the window need to add this functionality.
    Please, take a look this example:
    http://jsfiddle.net/g4v389Lj/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    window open but collapsed #86626

    pepe
    Participant

    Hristo Thanks for the answer, but that’s not what I asked.

    My question is this: Pressing a button I want to show a window, but the window must be displayed collapsed.

    window open but collapsed #86655

    Hristo
    Participant

    Hello pepe,

    Thank you for the interest to our widget.
    We create work item for this. I would like to suggest you one workaround with ‘setTimeout’ for now.

    $("#jqxwindow").jqxWindow('open');
    setTimeout(function () {
    	$("#jqxwindow").jqxWindow('collapse');
    },300);

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    window open but collapsed #86703

    pepe
    Participant

    Hristo thanks for the reply.

    A greeting.

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

You must be logged in to reply to this topic.