Class DHTMLSuite.windowModel
Object
|
+--DHTMLSuite.windowModel
- class
DHTMLSuite.windowModel
Purpose of class: Save metadata about a window. (Demo)
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Method Summary |
Object
|
addTab(properties)
Add a new tab to the model
|
void
|
createWindowModelFromMarkUp(referenceToHTMLElement)
Create window from HTML markup on your page.
|
isClosable
Object isClosable
isDragable
Object isDragable
isMinimizable
Object isMinimizable
isResizable
Object isResizable
isVisible
Object isVisible
windowContents
Object windowContents
windowsTheme
Object windowsTheme
DHTMLSuite.windowModel
DHTMLSuite.windowModel(arrayOfProperties)
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
addTab
Object addTab(properties)
Add a new tab to the model
Returns:
A reference to the model or false if a tab with the specified id already exists.
createWindowModelFromMarkUp
void createWindowModelFromMarkUp(referenceToHTMLElement)
Create window from HTML markup on your page.
Parameters:
Object
- - reference to HTML element on page. (id or a direct reference) Example of markup: <div id="myWindow2" windowProperties="DHTMLSuite.windowModel.prototype.windowsTheme = true;DHTMLSuite.windowModel.prototype.title = This;is my window,DHTMLSuite.windowModel.prototype.resizable = true;DHTMLSuite.windowModel.prototype.closable = true;DHTMLSuite.windowModel.prototype.maxWidth = 900;DHTMLSuite.windowModel.prototype.dragable = true;DHTMLSuite.windowModel.prototype.cookieName = myWindowCookie2;DHTMLSuite.windowModel.prototype.xPos = 300;DHTMLSuite.windowModel.prototype.yPos = 400;DHTMLSuite.windowModel.prototype.minWidth = 405;DHTMLSuite.windowModel.prototype.minHeight = 150;DHTMLSuite.windowModel.prototype.activeTabId = OtherWindow1;">
<div id="OtherWindow1" class="DHTMLSuite_windowContent" tabProperties="DHTMLSuite.windowModel.prototype.tabTitle = Welcome;">
This is my first window.
</div>
<div id="OtherWindow2" class="DHTMLSuite_windowContent" tabProperties="DHTMLSuite.windowModel.prototype.contentUrl = includes;/pane-splitter-calendar-1.php,DHTMLSuite.windowModel.prototype.tabTitle = Calendar;active=1">
</div>
<div id="OtherWindow3" class="DHTMLSuite_windowContent" tabProperties="DHTMLSuite.windowModel.prototype.contentUrl = includes;/pane-splitter-paypal.inc,DHTMLSuite.windowModel.prototype.tabTitle = Support;us">
</div>
<div id="OtherWindow4" class="DHTMLSuite_windowContent" tabProperties="DHTMLSuite.windowModel.prototype.contentUrl = includes;/pane-splitter-classes.inc,DHTMLSuite.windowModel.prototype.tabTitle = DHTMLSuite;classes">
</div>
</div> Note that each tab got class name "DHTMLSuite_windowContent". Also notice that the ids are separated from the property list. Properties are set by a comma separated list of DHTMLSuite.windowModel.prototype.key = value;*
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007