jQuery UI Widgets › Forums › Dialogs and Notifications › Window › window open but collapsed
Tagged: Angular window, bootstrap window, javascript window, jquery window, jqwidgets window, jqxwindow
This topic contains 4 replies, has 2 voices, and was last updated by pepe 8 years, 3 months ago.
-
Author
-
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>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 HristovjQWidgets team
http://www.jqwidgets.comHristo 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.
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 HristovjQWidgets team
http://www.jqwidgets.comHristo thanks for the reply.
A greeting.
-
AuthorPosts
You must be logged in to reply to this topic.