Window API overview
Methods
Name | Description |
---|---|
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
Name | Description |
---|---|
afterHide | fires after a window is hidden |
afterShow | fires after a window is shown |
beforeHide | fires before a window is hidden |
beforeShow | fires before a window is shown |
headerDoubleClick | fires on double clicking the header of a window |
move | fires on moving a window |
resize | fires on resizing a window |
Properties
Name | Description |
---|---|
closable | Optional. Defines whether a window can be closed |
css | Optional. Adds style classes for the component |
footer | Optional. Adds a footer to a window |
header | Optional. Adds a header to a window |
height | Optional. Sets the height of a window |
html | Optional. Sets an HTML content into a window on initialization |
left | Optional. The left coordinate of a window position |
minHeight | Optional. Sets the minimal height of a window |
minWidth | Optional. Sets the minimal width of a window |
modal | Optional. Defines whether a window is modal |
movable | Optional. Defines whether a window is movable |
node | Optional. The container for a window or its id |
resizable | Optional. Defines whether a window can be resized |
title | Optional. Adds some text into the header of a window |
top | Optional. The top coordinate of a window position |
viewportOverflow | Optional. Defines whether a window can go beyond borders of a browser |
width | Optional. Sets the width of a window |