Layout API

Methods
addCell adds a new cell into a layout
cell returns the config object of a cell
destructor removes a Layout instance and releases occupied resources
removeCell removes a specified cell
Properties
activeView sets the currently active view
cols an array of columns objects
rows an array of rows objects
views sets an array of views objects
Cell methods
attach attaches a DHTMLX component into a Layout cell
attachHTML adds an HTML content into a dhtmlxLayout 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
Events
AfterAdd fires after adding a new cell
AfterCollapse fires after a cell is collapsed
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
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
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
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