DHTMLX Docs & Samples Explorer

listAutoSizes()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxlayout.js

returns array with autosize settings for loaded layout (depends on pattern)

    var dhxLayout = dhtmlXLayoutObject(document.body, "5I");
    var autoSizes = dhxLayout.listAutoSizes();

autoSizes now is an array with the following structure

    autoSizes = ["a;d;e",                      // current horizontal autosize
                 "e",                          // current vertical autosize
                 ["a;b;e", "a;c;e", "a;d;e"],  // array with available horizontal autosizes
                 ["a", "b;c;d", "e"]           // array with available vertical autosizes
    ];