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