Skip to main content

attach()

attaches a DHTMLX component to a dhtmlxWindow

attach(name: string | IViewFn | IView | IViewConstructor | any, config?: any): 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. Attaching Other Components

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.