Example
define( function() {
class PageModule
{
load( oPage )
{
}
show( oPage )
{
}
hide( oPage )
{
}
destroy( oPage )
{
}
}
return PageModule;
});
Methods
destroy(oPage)
Called when the page is being destroyed. This method is optional.
Parameters:
Name | Type | Description |
---|---|---|
oPage | Page | The page. |
hide(oPage)
Called when the page is being hidden. This method is optional.
Parameters:
Name | Type | Description |
---|---|---|
oPage | Page | The page. |
load(oPage)
Called when the page is loaded. This can be used to set any required custom prompt validators. This method is optional.
Parameters:
Name | Type | Description |
---|---|---|
oPage | Page | The page. |
Example
load( oPage )
{
oPage.getControlByName( "txtZipCode" ).setValidator( fnZipCodeValidator );
}
show(oPage)
Called when the page is being shown/displayed. This method is optional.
Parameters:
Name | Type | Description |
---|---|---|
oPage | Page | The page. |