YAHOO.util.CustomEvent |
asyncSubmitEvent
CustomEvent fired prior to asynchronous submission
|
YAHOO.util.CustomEvent |
beforeSubmitEvent
CustomEvent fired prior to submission
|
YAHOO.util.CustomEvent |
cancelEvent
CustomEvent fired after cancel
|
YAHOO.util.CustomEvent |
formSubmitEvent
CustomEvent fired prior to form-based submission
|
YAHOO.util.CustomEvent |
manualSubmitEvent
CustomEvent fired prior to manual submission
|
YAHOO.util.CustomEvent |
submitEvent
CustomEvent fired after submission
|
string |
CSS_DIALOG
Constant representing the default CSS class used for a Dialog
|
Class YAHOO.widget.Dialog
Object | +--YAHOO.widget.Dialog
class
YAHOO.widget.Dialog
Field Summary [top]
Constructor Summary [top]
YAHOO.widget.Dialog
Copyright (c) 2006, Yahoo!
Method Summary [top]
void |
blurButtons
()
Blurs all the html buttons
|
void |
cancel
()
Executes the cancel of the Dialog followed by a hide.
|
void |
configButtons
(type, args, obj)
The default event handler for the "buttons" configuration property
|
void |
configOnFailure
(type,args,obj)
The default handler fired when the "failure" property is changed.
|
void |
configOnSuccess
(type,args,obj)
The default handler fired when the "success" property is changed.
|
void |
doSubmit
()
Executes a submission of the form based on the value of the postmethod property.
|
void |
focusDefaultButton
()
Sets the focus to the button that is designated as the default.
|
void |
focusFirst
(type,args,obj)
The default event handler used to focus the first field of the form when the Dialog is shown.
|
void |
focusFirstButton
()
Sets the focus to the first button in the button list
|
void |
focusLast
(type,args,obj)
Sets the focus to the last button in the button or form element in the Dialog
|
void |
focusLastButton
()
Sets the focus to the first button in the button list
|
object |
getData
()
Returns a JSON-compatible data structure representing the data currently contained in the form.
|
void |
init
(<string> <Element> el, <object> userConfig)
The Dialog initialization method, which is executed for Dialog and all of its subclasses.
|
void |
initDefaultConfig
()
Initializes the class's configurable properties which can be changed using the Dialog's Config object (cfg).
|
void |
initEvents
()
Initializes the custom events for Dialog which are fired automatically at appropriate times by the Dialog class.
|
void |
registerForm
()
Prepares the Dialog's internal FORM object, creating one if one is not currently present.
|
Object |
submit
()
Executes a submit of the Dialog followed by a hide, if validation is successful.
|
string |
toString
()
Returns a string representation of the object.
|
Object |
validate
()
Built-in function hook for writing a validation function that will be checked for a "true" value prior to a submit.
|
Field Detail [top]
asyncSubmitEvent
YAHOO.util.CustomEvent
asyncSubmitEvent
CustomEvent fired prior to asynchronous submission
beforeSubmitEvent
YAHOO.util.CustomEvent
beforeSubmitEvent
CustomEvent fired prior to submission
cancelEvent
YAHOO.util.CustomEvent
cancelEvent
CustomEvent fired after cancel
formSubmitEvent
YAHOO.util.CustomEvent
formSubmitEvent
CustomEvent fired prior to form-based submission
manualSubmitEvent
YAHOO.util.CustomEvent
manualSubmitEvent
CustomEvent fired prior to manual submission
submitEvent
YAHOO.util.CustomEvent
submitEvent
CustomEvent fired after submission
CSS_DIALOG
string
CSS_DIALOG
Constant representing the default CSS class used for a Dialog
Constructor Detail [top]
YAHOO.widget.Dialog
YAHOO.widget.Dialog
()
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
- Parameters:
-
el
- The element ID representing the Dialog OR -
el
- The element representing the Dialog -
userConfig
- The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details.
Method Detail [top]
blurButtons
void
blurButtons
()
Blurs all the html buttons
HASH(0x1d04ed8)
cancel
void
cancel
()
Executes the cancel of the Dialog followed by a hide.
HASH(0x1d04ff8)
configButtons
void
configButtons
(type, args, obj)
The default event handler for the "buttons" configuration property
HASH(0x1ce1124)
configOnFailure
void
configOnFailure
(type,args,obj)
The default handler fired when the "failure" property is changed. Used for asynchronous submission only.
HASH(0x1ce1244)
configOnSuccess
void
configOnSuccess
(type,args,obj)
The default handler fired when the "success" property is changed. Used for asynchronous submission only.
HASH(0x1ce1364)
doSubmit
void
doSubmit
()
Executes a submission of the form based on the value of the postmethod property.
HASH(0x1ce1484)
focusDefaultButton
void
focusDefaultButton
()
Sets the focus to the button that is designated as the default. By default, his handler is executed when the show event is fired.
HASH(0x1ce15a4)
focusFirst
void
focusFirst
(type,args,obj)
The default event handler used to focus the first field of the form when the Dialog is shown.
HASH(0x1ce16c4)
focusFirstButton
void
focusFirstButton
()
Sets the focus to the first button in the button list
HASH(0x1ce17e4)
focusLast
void
focusLast
(type,args,obj)
Sets the focus to the last button in the button or form element in the Dialog
HASH(0x1ce1904)
focusLastButton
void
focusLastButton
()
Sets the focus to the first button in the button list
HASH(0x1ce1a24)
getData
object
getData
()
Returns a JSON-compatible data structure representing the data currently contained in the form.
- Returns:
- A JSON object reprsenting the data of the current form.
init
void
init
(<string> <Element> el, <object> userConfig)
The Dialog initialization method, which is executed for Dialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
- Parameters:
-
el
- The element ID representing the Dialog OR -
el
- The element representing the Dialog -
userConfig
- The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details.
initDefaultConfig
void
initDefaultConfig
()
Initializes the class's configurable properties which can be changed using the Dialog's Config object (cfg).
HASH(0x1ce1dd8)
initEvents
void
initEvents
()
Initializes the custom events for Dialog which are fired automatically at appropriate times by the Dialog class.
HASH(0x1ce1ef8)
registerForm
void
registerForm
()
Prepares the Dialog's internal FORM object, creating one if one is not currently present.
HASH(0x1d1d034)
submit
Object
submit
()
Executes a submit of the Dialog followed by a hide, if validation is successful.
HASH(0x1d1d154)
toString
string
toString
()
Returns a string representation of the object.
HASH(0x1d1d268)
validate
Object
validate
()
Built-in function hook for writing a validation function that will be checked for a "true" value prior to a submit. This function, as implemented by default, always returns true, so it should be overridden if validation is necessary.
HASH(0x1d1d388)