Features
This page helps you start working with DHTMLX Layout and explore its functionality in depth.
How to start with DHTMLX Layout
In this section you will learn how to initialize Layout, attach DHTMLX components to its cells, and integrate Layout into your applications.
Initialization
| Topic | Description |
|---|---|
| Basic initialization | Learn how to initialize a Layout (Example) |
| Attaching widgets | Learn how to attach a DHTMLX component to a Layout cell or detach it (Example) |
Integration
| Topic | Description |
|---|---|
| Backend integration | Learn how to connect DHTMLX Suite to a backend (Demo) |
| Optimus | Learn how to use the DHTMLX Optimus framework to build DHTMLX-based apps (the recommended framework for apps with Suite components) |
| React integration | Learn how to use DHTMLX Layout with React (Demo) |
| Angular integration | Learn how to use DHTMLX Layout with Angular (Demo) |
| Vue integration | Learn how to use DHTMLX Layout with Vue.js (Demo) |
How to configure Layout
In this section you will learn how to build a horizontal, vertical, or mixed layout, and how to add borders or space between cells.
| Topic | Description |
|---|---|
| Defining Layout structure | Learn how to create a Layout of the necessary structure |
| Adding borders to cells | Learn how to configure the borders or add space between cells in Layout (Example 1, Example 2) |
How to configure Layout cells
In this section you will learn how to make cells resizable, hidden, or collapsed, add a cell header, and configure the content alignment, padding, and progress bar of a cell.
| Topic | Description |
|---|---|
| Making a cell resizable | Learn how to let users resize a cell by dragging its borders (Example) |
| Making cells hidden | Learn how to render a layout with hidden cells |
| Adding a header to a cell | Learn how to add a header to a cell (Example) |
| Adding custom content to a cell header | Learn how to render HTML markup or a DHTMLX widget in the header of a cell (Example) |
| Configuring content alignment | Learn how to set the alignment of content inside a cell (Example) |
| Configuring padding | Learn how to configure the distance between a cell and the Layout border (Example) |
| Initializing a collapsed cell | Learn how to initialize a collapsed cell and let users expand it (Example 1, Example 2) |
| Showing the default progress bar | Learn how to show a progress bar in a cell that has no attached component or HTML content |
How to configure sizes of Layout cells
In this section you will learn how to configure the sizes of Layout cells and their headers.
| Topic | Description |
|---|---|
| Width and height of a cell | Learn how to configure the width and height of a cell (Example) |
| Size of a cell within a row | Learn how to define the "weight" of a cell in relation to other cells placed in the same row and within one parent (Example) |
| Height of a cell header | Learn how to configure the height of a cell header |
How to customize Layout and its cells
In this section you will learn how to add HTML content to cells and change the look and feel of Layout.
| Topic | Description |
|---|---|
| Rendering HTML content | Learn how to render HTML content in a cell on Layout initialization (Example) |
| Attaching HTML content | Learn how to attach HTML content to a cell dynamically or detach it |
| Styling (custom CSS) | Learn how to apply custom styles to a Layout cell (Example) |
| List of CSS classes | The CSS classes included in the DHTMLX library |
How to work with Layout cells
In this section you will learn how to get a cell object, iterate over cells, and remove, hide, show, collapse, or expand a cell. You will also learn how to show or hide a progress bar.
| Topic | Description |
|---|---|
| Removing a cell | Learn how to remove a cell from Layout (Example) |
| Iterating over all cells | Learn how to iterate over Layout cells (Example) |
| Getting a cell object | Learn how to get the configuration object of a cell |
| Showing/hiding a cell | Learn how to hide or show a cell (Example 1, Example 2) |
| Checking visibility of a cell | Learn how to check whether a Layout cell is visible |
| Expanding/collapsing a cell | Learn how to collapse or expand a cell (Example 1, Example 2) |
| Showing/hiding a progress bar | Learn how to show or hide the progress bar in a Layout container or in a cell (Example) |
Layout patterns
How to work with Layout events
In this section you will learn how to work with Layout events.
| Topic | Description |
|---|---|
| Event basic rules | Learn the basic rules of event handling |
| Event handling | Learn how to attach, detach, or call Layout events (Example) |
API reference
In this section you will find the Layout and Layout cell API reference.
Layout API
| Topic | Description |
|---|---|
| Layout methods | Check the list of Layout methods |
| Layout events | Check the list of Layout events |
| Layout properties | Check the list of Layout properties |
Layout cell API
| Topic | Description |
|---|---|
| Layout cell methods | Check the list of Layout cell methods |
| Layout cell properties | Check the list of Layout cell properties |
Common functionality
In this section you will learn about common library functionality that is useful when you work with Layout.
| Topic | Description |
|---|---|
| Touch support | Learn how to work with touch support |
| TypeScript support | Learn how to work with TypeScript |
| Custom scroll | Learn how to enable custom scroll in Layout cells |
| AwaitRedraw | Learn how to run code after the component renders |
Any questions left?
Do you need more functionality? Feel free to share your suggestions in the comments below!