A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/layout/api/cell/layout_cell_attach_method/ below:

Website Navigation


JavaScript Layout - attach Method

attach()

attaches a DHTMLX component into a Layout cell

attach(component: string | object, config?: object): object;

Parameters: Returns:

The object of the attached component.

Example

const layout = new dhx.Layout("layout_container", {
width:"400px", height:"600px"
});

const sidebar = new dhx.Sidebar(null, {
css: "dhx_widget--border_right dhx_widget--bg"
});

layout.getCell("sidebar").attach(sidebar);

Related sample: Layout. Attach

note

The DHTMLX Message, Popup, Window components can't be attached to the Layout cell because these components can't have the parent container due to their architecture principles.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4