DHTMLX Docs & Samples Explorer

Collapsed Text

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>
<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>
<script>
var dhxLayout;
function doOnLoad() {
    dhxLayout = new dhtmlXLayoutObject("parentId", "4I");
    dhxLayout.cells("a").setText("Main Page");
    dhxLayout.cells("b").setText("Site Navigation");
    dhxLayout.cells("c").setText("Support & Feedback");
    dhxLayout.cells("d").setText("Comments");
    //;
    dhxLayout.setCollapsedText("a", "Main Page");
    dhxLayout.setCollapsedText("b", "<img src='../common/labels/1.gif' width='18px' height='81px' border='0'>");
    dhxLayout.setCollapsedText("c", "<img src='../common/labels/2.gif' width='18px' height='106px' border='0'>");
    dhxLayout.setCollapsedText("d", "Comments");
}
</script>