Skip to main content

attach()

attaches a DHTMLX component to a DHTMLX Window

attach(name: string | object, config?: object): void;

Parameters:

  • name: string, object - the name or object of a component
  • config: object - optional, the configuration settings of a component

Example

dhxWindow.attach("richtext",{mode: "document"});
dhxWindow.show();

Related sample: Window. Attach widget

note

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