PopUp
| Name space |
rialto.widget |
| FILE |
rialtoEngine\javascript\components\containers\popup.js |
| NAME |
PopUp |
| INHERITS |
AbstractContainer
|
| VERSION |
0.86 |
| update |
|
| DESCRIPTION |
This object create a modal window which can be moved |
CONSTRUCTOR
| Name |
Type |
Description |
Default |
| name |
String |
name of the HTML element |
|
| top |
int |
Top position (in pixel) |
0 |
| left |
int |
Left position (in pixel) |
0 |
| width |
String |
Width (in pixel or %) |
100% |
| height |
String |
Height (in pixel or %) |
100% |
| content |
String |
text that will be add to the popup |
100% |
| title |
String |
Title of the window |
|
| greyBackground |
String |
Popup on grey background ('Gris') or on transparent background ('transparent') |
Gris |
| objPar.withCloseButon |
boolean |
if true the popup has a close button |
true |
| objPar.visible |
boolean |
initial visible state of the popup |
true |
Example:
ppUp = new rialto.widget.PopUp('test',150,420,'250','150','',"Login",'transparent',{withCloseButon:true,visible:true});
PUBLIC METHODS
setTitle
this method will allow to change the value of the title
Parameters:
String newTitle:new value of the title
setVisible
this method will allow to display or hide the popup according to the parameter
Parameters:
boolean isVisible:True to display
onSetTitle
this method will be raise after changing the title
Parameters:
String newTitle:new value of the title
The code must be redefine after the instanciation of the component. By default this method does nothing.
closeWindow
this method will allow to close the window
Parameters:
onclose
this method will be raise after closing the window
Parameters:
The code must be redefine after the instanciation of the component. By default this method does nothing.