JavaScript Window

Invoke the collapse method of the jqxWindow. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id='jqxwindow'>
    <div>Header</div>
    <div>Content</div>
</div>
<input type="button" style="margin: 50px;" id="jqxbutton" value="Collapse the window" />

JavaScript

$('#jqxwindow').jqxWindow({
    theme: 'energyblue'
});
$("#jqxbutton").jqxButton({
    theme: 'energyblue',
    width: 150,
    height: 30
});

$('#jqxbutton').click(function () {
    $("#jqxwindow").jqxWindow('collapse')
});