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 | defines whether a window can be closed |
css | adds style classes for the component |
footer | adds a footer to a window |
header | adds a header to a window |
height | sets the height of a window |
html | sets an HTML content into a window on initialization |
left | the left coordinate of a window position |
minHeight | sets the minimal height of a window |
minWidth | sets the minimal width of a window |
modal | defines whether a window is modal |
movable | defines whether a window is movable |
node | optional, the container for a window or its id |
resizable | defines whether a window can be resized |
title | adds some text into the header of a window |
top | the top coordinate of a window position |
viewportOverflow | defines whether a window can go beyond borders of a browser |
width | sets the width of a window |