DHTMLX Docs & Samples Explorer

### PanelResize Event Handling

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxlayout.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxlayout_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxlayout.js"></script>
    <link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/dhtmlxwindows.css">
    <link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/skins/dhtmlxwindows_dhx_skyblue.css">
    <script src="../../../dhtmlxWindows/codebase/dhtmlxwindows.js"></script>
    <script src="../../../dhtmlxWindows/codebase/engine/dhtmlxwindows_enginedhx.js"></script>
    <script src="../../codebase/dhtmlxcontainer.js"></script>

    <div id="parentId" style="position: relative; top: 20px; left: 20px; width: 600px; height: 400px; aborder: #B5CDE4 1px solid;"></div>
    <div id="log" style="position: relative; margin-top: 40px; margin-left: 20px; width: 600px; height: 120px; border: #909090 1px solid; overflow-y: scroll; font-family: Tahoma; font-size: 11px;">
    </div>
    <script>var dhxLayout;
    function doOnLoad() {
        dhxLayout = new dhtmlXLayoutObject("parentId", "5I");
        dhxLayout.attachEvent("onPanelResizeFinish", doOnPanelResize);
    }
    function doOnPanelResize(ids) {
        document.getElementById("log").innerHTML += "<b>onPanelResizeFinish</b> event called, used items are <b>" + ids.toString() + "</b><br>";
    }</script>