Class BTM.UI.WindowBase
Faux Window base class
Defined in: ui.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BTM.UI.WindowBase(options)
|
| Field Attributes | Field Name and Description |
|---|---|
|
Flag to indicate if the Window object is visible ("open")
|
| Method Attributes | Method Name and Description |
|---|---|
|
attachWindow(element, element)
Attach the Window element to the DOM
|
|
|
Resize Handler for Full-Screen Window elements
|
|
|
hide()
Hide the Window element
|
|
|
init()
Initialize the Window object
|
|
|
resizeWindow(width, height)
Handles resizing of the Window element
|
|
|
show()
Show the Window element
|
Class Detail
BTM.UI.WindowBase(options)
- Parameters:
- {Object} options Optional
- the Options object
- {String} options.class Optional, Default: 'btm-window'
- the class name for the Window element
- {Boolean} options.fullscreen Optional, Default: true
- flag to make the Window fill the Browser window
- {Boolean} options.centered Optional, Default: true
- flag to auto-center the Window
- {Boolean} options.autoscroll Optional, Default: true
- flag to specify the Window should be adjusted to stay in the same relative position within the browser window when scrolled
- {Boolean} options.clickToClose Optional, Default: true
- flag to make the Window close when clicked
- {Boolean} options.noContent Optional, Default: false
- flag to specify Window element has no content
- {Bolean} options.autoAppend Optional, Default: true
- flag to automatically append the Window element to the DOM
- {Boolean} options.ie6iframe Optional, Default: true
- flag to automatically create an invisble iframe to fix the SELECT element z-index bug in MSIE < 7
Field Detail
{Boolean}
open
Flag to indicate if the Window object is visible ("open")
Method Detail
attachWindow(element, element)
Attach the Window element to the DOM
- Parameters:
- {HTMLElement|String} element Optional, Default: document.body
- element ID or reference to element that should contain the Window element
- {HTMLElement|String} element Optional
- element ID or reference to element that Window element should be inserted before
fullScreenResize()
Resize Handler for Full-Screen Window elements
hide()
Hide the Window element
init()
Initialize the Window object
resizeWindow(width, height)
Handles resizing of the Window element
- Parameters:
- width
- height
show()
Show the Window element