Getting the tabbars grid

I’m still new to this api and I went through the functions available but couldn’t find a method to get the attached grid in a tabbar. Anyone know how to do it without saving a global reference?

var grid = tabbar.cells(id).grid;

Oh ok so the grid acts like a cell within the tabbar. Thanks did not realize that. Does tabbar extend from layout?

Does tabbar extend from layout?

Both tabbar and layout use container (dhtmlxcontainer.js). Therefore some methods are the same.