Skip to main content

attach()

attaches a DHTMLX component to a DHTMLX Popup

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

Parameters:

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

Returns:

The object of the attached component.

Example

const timepicker = new dhx.Timepicker();
popup.attach(timepicker);
popup.show();

Related sample: Popup. Attach Timepicker