Check documentation for the latest version of dhtmlxSuite getAttachedObject DHTMLX Docs

getAttachedObject

returns object attached to a tab

string|object getAttachedObject();
string|objectattached object

Example

var myGrid = myTabbar.tabs(id).attachGrid({...});
 
// somewhere in a different place
var obj =  myTabbar.tabs(id).getAttachedObject();
if (typeof(window.dhtmlXGridObject) == "function" && obj instanceof dhtmlXGridObject) {
    // code related to grid
} else {
    // some other code
}

Back to top