Constructor
new Window(target, options)
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement | string | default is document.body |
options |
object |
- Source:
Methods
center()
Centers the window globally in the browsers frame
- Source:
close()
Hide the window by removing it from the parent
- Source:
disableDragMove()
disable moving the window with the mouse
- Source:
dispose()
dispose the Window
- Source:
enableDragMove()
enable moving the window with the mouse
- Source:
initElement_()
- Source:
open()
Show the window by adding it to the parent
- Source:
setContent(title)
Change the content of the window
Parameters:
Name | Type | Description |
---|---|---|
title |
string | HTMLElement |
- Source:
setOptions(options)
Update the options of the window
Parameters:
Name | Type | Description |
---|---|---|
options |
object |
- Source:
setTitle(title)
Change the title in the header
Parameters:
Name | Type | Description |
---|---|---|
title |
string |
- Source: