Class RXBuild.UI.Dialog
The RXBuild.UI.Dialog displays a YUI dialog with a text area or provided HTMLElement as main content, and configurable verbs
Defined in: ui_dialog_extensions.js.
Constructor Attributes | Constructor Name and Description |
---|---|
RXBuild.UI.Dialog(divName)
Creates a new instance of TextAreaDialog
|
Field Attributes | Field Name and Description |
---|---|
The YUI close/cancel button - used internally.
|
|
The YUI ok button - used internally.
|
|
The YUI dialog - used internally.
|
|
The name of the div element that this item provided to YUI
|
|
The dynamically create text area - used internally.
|
Method Attributes | Method Name and Description |
---|---|
show(headerHTML, defaultText, verbs, callback, callbackContext)
Displays modally the dialog box with the provided header, text and buttons.
|
Class Detail
RXBuild.UI.Dialog(divName)
Creates a new instance of TextAreaDialog
- Parameters:
- {String} divName
- The name of the div element that this item will provide to YUI
Field Detail
{YAHOO.widget.Button}
_btnCancel
The YUI close/cancel button - used internally.
{YAHOO.widget.Button}
_btnOk
The YUI ok button - used internally.
{YAHOO.widget.Dialog}
dialog
The YUI dialog - used internally.
{String}
divName
The name of the div element that this item provided to YUI
{HTMLTextArea}
textBox
The dynamically create text area - used internally.
Method Detail
show(headerHTML, defaultText, verbs, callback, callbackContext)
Displays modally the dialog box with the provided header, text and buttons.
- Parameters:
- {String} headerHTML
- HTML content to display in the header of the dialog
- {String|HTMLElement} defaultText
- The main content to display in the dialogs body initially
- {String[]|String} verbs
- Optional. An array of labels to put on the OK and Cancel buttons (respectively)
- {Function} callback
- Optional. The method to call when the user validates the dialog.
- {object} callbackContext
- Optional. The object to scope before calling callback