Skip to main content

Window API overview

Methods

NameDescription
attach()attaches a DHTMLX component to a DHTMLX Window
attachHTML()adds an HTML content into a DHTMLX Window
destructor()removes a window instance and releases occupied resources
getContainer()returns the HTML element of Window
getPosition()gets the position of a window
getSize()gets the size of window
getWidget()returns the widget attached to Window
hide()hides a window
isFullScreen()checks whether the window is in the full screen mode
isVisible()checks whether a window is visible
paint()repaints a window on a page
setFullScreen()switches the window into the full screen mode
setPosition()sets the position of a window
setSize()sets the size of a window
show()shows a window on a page
unsetFullScreen()switches the window from the full screen mode into the windowed mode

Events

NameDescription
afterHidefires after a window is hidden
afterShowfires after a window is shown
beforeHidefires before a window is hidden
beforeShowfires before a window is shown
headerDoubleClickfires on double clicking the header of a window
movefires on moving a window
resizefires on resizing a window

Properties

NameDescription
closableOptional. Defines whether a window can be closed
cssOptional. Adds style classes for the component
footerOptional. Adds a footer to a window
headerOptional. Adds a header to a window
heightOptional. Sets the height of a window
htmlOptional. Sets an HTML content into a window on initialization
leftOptional. The left coordinate of a window position
minHeightOptional. Sets the minimal height of a window
minWidthOptional. Sets the minimal width of a window
modalOptional. Defines whether a window is modal
movableOptional. Defines whether a window is movable
nodeOptional. The container for a window or its id
resizableOptional. Defines whether a window can be resized
titleOptional. Adds some text into the header of a window
topOptional. The top coordinate of a window position
viewportOverflowOptional. Defines whether a window can go beyond borders of a browser
widthOptional. Sets the width of a window