Layout API

Methods
cell returns the config object of a cell
destructor removes a Layout instance and releases occupied resources
forEach iterates over all specified layout cells
getCell returns the config object of a cell
removeCell removes a specified cell
Properties
cols an array of columns objects
rows an array of rows objects
Cell methods
attach attaches a DHTMLX component into a Layout cell
attachHTML adds an HTML content into a dhtmlxLayout cell
collapse collapses a specified cell
expand expands a collapsed cell
getParent returns the parent of a cell
getWidget returns the widget attached to a layout cell
hide hides a specified cell
isVisible checks whether a cell is visible
paint repaints Layout on a page
show shows a hidden cell
toggle expands/collapses a Layout cell
Events
AfterAdd fires after adding a new cell
AfterCollapse fires after a cell is collapsed
AfterExpand fires after expanding a cell
AfterHide fires after a cell is hidden
AfterRemove fires after removing a cell
AfterResizeEnd fires after resizing of a cell is ended
AfterShow fires after a cell is shown
BeforeAdd fires before adding a cell
BeforeCollapse fires before a cell is collapsed
BeforeExpand fires before expanding a cell
BeforeHide fires before a cell is hidden
BeforeRemove fires before removing a cell
BeforeResizeStart fires before resizing of a cell has started
BeforeShow fires before a cell is shown
resize fires on resizing a cell
Cell properties
align sets the alignment of content inside a cell
collapsable defines whether a cell can be collapsed
collapsed defines whether a cell is collapsed
css the name of a CSS class(es) applied to Layout
gravity arranges content evenly throughout the cell
header adds a header with text for a cell
headerHeight sets the height of a Layout cell
headerIcon an icon used in the header of a cell
headerImage an image used in the header of a cell
height sets the height of a cell
hidden defines whether a cell is hidden
html sets HTML content for a cell
id the id of a cell
on adds handlers to DOM events of a cell
padding defines the distance between a cell and the border of layout
resizable defines whether a cell can be resized
width sets the width of a cell
Back to top