DHTMLX Docs & Samples Explorer

Attach dhtmlxFolders to Layout

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="../../../dhtmlxFolders/codebase/dhtmlxfolders.css">
<script src="../../../dhtmlxFolders/codebase/dhtmlxfolders.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,
dhxFolders;
function doOnLoad() {
    dhxLayout = new dhtmlXLayoutObject("parentId", "3L");
    dhxLayout.cells("a").setWidth(330);
    dhxFolders = dhxLayout.cells("a").attachFolders();
    dhxFolders.setImagePath("../../../dhtmlxFolders/codebase/imgs/");
    dhxFolders.setItemType("ftiles");
    dhxFolders.setUserData("icons_src_dir", "../../../dhtmlxFolders/samples/common/images");
    dhxFolders.loadXML("../common/folders.xml?" + new Date().getTime(), "../../../dhtmlxFolders/codebase/types/ftiles.xsl?" + new Date().getTime());
}
</script>