Class Exanpe.Dialog
Represents a Dialog component
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.Dialog(id, message, targetHtmlId, title, renderMode, width, yui)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
The id of the instance
|
|
The Dialog message
|
|
The Dialog render mode
|
|
Html id used to display Dialog content, instead of message
|
|
The Dialog title
|
|
The width of the Dialog box
|
|
The wrapped yui dialog instance
|
Method Attributes | Method Name and Description |
---|---|
Called after process the Dialog validation
Does nothing by default, override to define your own action.
|
|
Called before showing Dialog box
Does nothing by default, override to define your own action.
|
|
Called before process the Dialog validation
Does nothing by default, override to define your own action.
|
|
hide()
Hide the dialog box
|
|
setMessage(message)
Set the message of the dialog box
|
|
setWidth(width)
Set the width of the dialog box
|
|
show(e)
Display the dialog box
|
Class Detail
Exanpe.Dialog(id, message, targetHtmlId, title, renderMode, width, yui)
Constructor
- Parameters:
- {String} id
- the id of the Dialog Mixin container element
- {String} message
- the message of the dialog box
- {String} targetHtmlId
- the HTML id used to display the content of the Dialog box instead of message parameter
- {String} title
- the title of the dialog box
- {String} renderMode
- the render mode to used for displaying Dialog (RENDER_MODE_INFO or RENDER_MODE_CONFIRM)
- {int} width
- the with of the dialog box, in pixel
- {YUI} yui
- the YUI Dialog object wrapped
Field Detail
id
The id of the instance
message
The Dialog message
renderMode
The Dialog render mode
targetHtmlId
Html id used to display Dialog content, instead of message
title
The Dialog title
width
The width of the Dialog box
yui
The wrapped yui dialog instance
Method Detail
afterDialogValidation()
Called after process the Dialog validation
Does nothing by default, override to define your own action.
beforeDialogShow()
Called before showing Dialog box
Does nothing by default, override to define your own action.
beforeDialogValidation()
Called before process the Dialog validation
Does nothing by default, override to define your own action.
hide()
Hide the dialog box
setMessage(message)
Set the message of the dialog box
- Parameters:
- {String} message
- the message to set
setWidth(width)
Set the width of the dialog box
- Parameters:
- {int} width
- the width to set
show(e)
Display the dialog box
- Parameters:
- {Event} e
- the triggered event