|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Dialog
Defined in widgets/dialog.js
| Field Summary | |
Array |
buttons
Dialog buttons |
String |
buttonsClass
CSS class for the dialog's buttons |
Object |
container
If a container element is provided, the dialog will use relative positioning |
Object |
contentEl
Dialog's content container |
Object |
contents
Dialog contents (string or element reference) |
String |
contentsClass
CSS class for the dialog's content |
Object |
el
Dialog's root element |
Object |
focusId
Element ID that must receive focus when dialog opens |
Boolean |
followScroll
Whether the dialog must follow window scroll (absolute positioning only) |
Boolean |
hoverClose
Whether the dialog must be closed upon mouseout event |
<private> Object |
i
|
String |
id
Dialog ID |
Number |
left
Left offset, when using relative positioning |
String |
loadMethod
Load method (get or post) |
Object |
loadParams
Request parameters to be used while loading contents with AJAX |
String |
loadUri
URI to load dialog contents from, using AJAX |
Function |
onBeforeClose
Called before closing the dialog, can be used to cancel this event |
Function |
onBeforeOpen
Called before opening the dialog, can be used to cancel this event |
Function |
onClose
Called after the dialog is closed |
Function |
onOpen
Called after the dialog is opened |
Object |
parent
Dialog's parent element |
Number |
top
Top offset, when using relative positioning |
Object |
trigger
Element that must open the dialog |
Boolean |
visible
Indicates if the dialog is visible (opened) |
Number |
zIndex
Dialog z-index |
| Constructor Summary | |
Dialog
(<Object> opts)
Base class of the dialogs API. |
|
| Method Summary | |
void
|
addButton(text, fn, def)
Adds a button on the dialog |
void
|
close()
Closes the dialog |
void
|
hide()
Hides the dialog |
void
|
open()
Opens the dialog |
void
|
place()
Places the dialog according to the provided settings |
<private> void
|
resizeHandler(e)
Called upon window.onresize |
<private> void
|
scrollHandler(e)
Called upon window.onscroll |
void
|
setButtonAction(<Number> idx, <Function> fn)
Changes the handler function of a dialog's button |
void
|
setContents(<Object> contents)
Set dialog's contents |
void
|
setup()
Performs initialization routines on the dialog |
void
|
setupContents()
Initializes the contents of the dialog |
void
|
show()
Shows the dialog |
| Field Detail |
Array buttons
String buttonsClass
Object container
Object contentEl
Object contents
String contentsClass
Object el
Object focusId
Boolean followScroll
Boolean hoverClose
<private> Object i
String id
Number left
String loadMethod
Object loadParams
String loadUri
Function onBeforeClose
Function onBeforeOpen
Function onClose
Function onOpen
Object parent
Number top
Object trigger
Boolean visible
Number zIndex
| Constructor Detail |
Dialog(<Object> opts)
opts - Configuration options
| Method Detail |
void addButton(text, fn, def)
Caption -
Handler - function
Is - this the default button?
void close()
void hide()
void open()
void place()
<private> void resizeHandler(e)
<private> void scrollHandler(e)
void setButtonAction(<Number> idx, <Function> fn)
idx - Button index (zero based)
fn - Handler function
void setContents(<Object> contents)
contents - String or element reference
void setup()
void setupContents()
void show()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||