PHP2Go Javascript Framework

Class Dialog

Object
   |
   +--Dialog
Direct Known Subclasses:
ModalDialog

class 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

buttons

Array buttons

buttonsClass

String buttonsClass

container

Object container

contentEl

Object contentEl

contents

Object contents

contentsClass

String contentsClass

el

Object el

focusId

Object focusId

followScroll

Boolean followScroll

hoverClose

Boolean hoverClose

i

<private> Object i

id

String id

left

Number left

loadMethod

String loadMethod

loadParams

Object loadParams

loadUri

String loadUri

onBeforeClose

Function onBeforeClose

onBeforeOpen

Function onBeforeOpen

onClose

Function onClose

onOpen

Function onOpen

parent

Object parent

top

Number top

trigger

Object trigger

visible

Boolean visible

zIndex

Number zIndex

Constructor Detail

Dialog

Dialog(<Object> opts)

Method Detail

addButton

void addButton(text, fn, def)

close

void close()

hide

void hide()

open

void open()

place

void place()

resizeHandler

 <private> void resizeHandler(e)

scrollHandler

 <private> void scrollHandler(e)

setButtonAction

void setButtonAction(<Number> idx, <Function> fn)

setContents

void setContents(<Object> contents)

setup

void setup()

setupContents

void setupContents()

show

void show()

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007