show()
shows a Popup
show(node: HTMLElement, config?: object): void;
Parameters:
node: HTMLElement
- mandatory, the container to place a popup inconfig: object
- optional, the configuration object of a popup. It can contain the properties below:centering: boolean
- defines whether a popup should be centered relative to the element, true by defaultauto: boolean
- enables autopositioning of a popup, i.e. it will be shown at that side of an element which provides enough space for a popupmode: string
- the position relative to the element to show a popup at: "left", "right", "bottom" (default), "top"indent: number
- the offset of a popup relative to the element
Example
<div id="popup_container"></div>
const popup = new dhx.Popup();
popup.show("popup_container");
Related samples:
Change log:
The indent property of the config parameter is added in v6.1.