new moopopup(options)
Layer window user interface.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | The class options object.
Properties
|
- Source:
- src/ui/moopopup.js, line 82
Example
var popup = new ajs.ui.moopopup({
width: 800,
max_body_height: 600,
text: 'My popup content'
}):
Methods
-
<protected> checkOptions()
Checks and validates the passed options
-
- Source:
- src/ui/moopopup.js, line 101
Returns:
void -
close()
Closes the window
-
- Source:
- src/ui/moopopup.js, line 518
Returns:
void -
<protected> disableObjects()
Disables all objects in the document
-
- Source:
- src/ui/moopopup.js, line 159
Returns:
void -
display()
Displays the window
-
- Source:
- src/ui/moopopup.js, line 135
Returns:
void -
<protected> enableObjects()
Enables all objects in the document
-
- Source:
- src/ui/moopopup.js, line 184
Returns:
void -
<protected> makeDraggable()
Makes the window draggable
-
- Source:
- src/ui/moopopup.js, line 387
Returns:
void -
<protected> makeResizable()
Makes the window resizable
-
- Source:
- src/ui/moopopup.js, line 406
Returns:
void -
position()
Window repositioning
-
- Source:
- src/ui/moopopup.js, line 477
Returns:
void -
<protected> renderBody()
Renders the window's body
-
- Source:
- src/ui/moopopup.js, line 455
Returns:
void -
<protected> renderContainer()
Renders the window container
-
- Source:
- src/ui/moopopup.js, line 355
Returns:
void -
<protected> renderHeader()
Renders the window's header
-
- Source:
- src/ui/moopopup.js, line 428
Returns:
void -
<protected> renderOverlay()
Renders an overlay over the whole viewport
-
- Source:
- src/ui/moopopup.js, line 228
Returns:
void -
renderPopup()
Renders the window
-
- Source:
- src/ui/moopopup.js, line 263
Returns:
void -
<protected> request()
Performs the ajax request and inserts the content in thw window body
-
- Source:
- src/ui/moopopup.js, line 324
Returns:
void -
<protected> sameDomain(win)
Checks if a window object is in the same domain of current window
-
Parameters:
Name Type Argument Description win
Object <optional>
the window object - Source:
- src/ui/moopopup.js, line 209
Returns:
true if the given window is in the same domain, false otherwise -
setFocus()
Moves the window to the front
-
- Source:
- src/ui/moopopup.js, line 507
Returns:
void -
<protected> setOption(option, value)
Sets an options
-
Parameters:
Name Type Argument Description option
String <optional>
The option name value
Mixed <optional>
The option value - Source:
- src/ui/moopopup.js, line 121
Returns:
void