|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Zapatec.Pane
Defined in pane.js
Field Summary | |
Object |
loadDataHtml
Loads data from the HTML|Xml fragment source. |
<static> Object |
id
|
Constructor Summary | |
Zapatec.Pane(objArgs)
Zapatec Pane object. |
Method Summary | |
Object
|
create(width, height)
Creates the HTML part of the Pane by calling prepareHtml, if it was not called before and adds the container to the document tree. |
void
|
destroy()
Destroys current pane instance removing all related HTML elements. |
void
|
fireWhenReady(func)
|
Object
|
getContainer()
|
Object
|
getContentElement()
|
Object
|
getHeight()
|
Object
|
getIframeDocument()
|
Object
|
getWidth()
|
void
|
hide()
Hides the Pane container. |
void
|
hideIndicator()
Hides the indicater. |
void
|
init(objArgs)
Init function. |
Object
|
initPane()
|
Object
|
isReady()
|
void
|
loadDataHtmlText(content)
|
Object
|
loadDataJson(objSource)
Loads data from the HTML source. |
void
|
prepareHtml()
Creates all needed HTML elements, if we are not reusing parent. |
Object
|
removeBorder()
|
Object
|
setContent(content)
Sets the content of the pane. |
void
|
setHeight(height)
|
Object
|
setPaneContent(content, type)
|
void
|
setWidth(width)
|
void
|
show()
Shows the Pane container. |
void
|
showIndicator(message)
Shows the indicater. |
Field Detail |
Object loadDataHtml
<static> Object id
Constructor Detail |
Zapatec.Pane(objArgs)
config
- [object] - pane config. Constructor recognizes the following properties of the config object \code property name | description ------------------------------------------------------------------------------------------------- parent | [string or object] Reference to DOM element where | newly created Pane will be placed. By default - | document.body containerType | [string] Required. Possible values: div|iframe|current - | what type of pane to create | * div - create new DIV element and add it into parent | * iframe - create new IFRAME element and add it into parent | * current - use parent as pane container sourceType | [string] see Zapatec.Widget documentation for this option source | [string or object] see Zapatec.Widget documentation | for this option width | [number] width of the Pane in "px" height | [number] height of the Pane in "px" autoContentWidth | [boolean] Option which determines if the width of the Pane will be | determined automatically. autoContentHeight | [boolean] Option which determines if the height of the Pane will be | determined automatically. id | [string] Optionally you can pass some string to be able to seek Pane by this ID onlyInit | [boolean] For developing needs this option will disable calling create method | of the Pane from init, so HTML structure will not be created after calling | constructor. showLoadingIndicator | [boolean] Determines if a loading progress indicator is to be shown | inside pane during loading. Default is true. overflow | [string] Determines pane content overflow style. Default to "auto". \endcode
Method Detail |
Object create(width, height)
width
- [number] - optional, width that can be different from the config's one
height
- [number] - optional, height that can be different from the config's one
void destroy()
void fireWhenReady(func)
Object getContainer()
Object getContentElement()
Object getHeight()
Object getIframeDocument()
Object getWidth()
void hide()
void hideIndicator()
void init(objArgs)
Object initPane()
Object isReady()
void loadDataHtmlText(content)
Object loadDataJson(objSource)
void prepareHtml()
Object removeBorder()
Object setContent(content)
content
- [string or object] - string content or reference to DOM element
void setHeight(height)
Object setPaneContent(content, type)
void setWidth(width)
void show()
void showIndicator(message)
message
- {string} message to show.
|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |