jQuery Window

Bind to the collapse event by type: 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>
<div id="log"></div>

JavaScript

$('#jqxwindow').jqxWindow({
    theme: 'energyblue',
    showCollapseButton: true
});
$('#jqxwindow').on('collapse', function (event) {
    $("#log").html("You collapsed a window")
});