eLabSDK.Wizard.Panel Class
Class that allows the creation of panels within a wizard
Constructor
eLabSDK.Wizard.Panel
(
async
-
object
Parameters:
-
object
Object-
onRender
Function- Include your code here due to the aSync nature of this class
-
Example:
Item Index
Methods
Properties
Methods
_checkForRequiredData
(
-
panel
Check if required data is availale to launch the wizard panel, display a log if logging enabled
Parameters:
-
panel
Object
_createMainContainer
(
-
panel
Create the main container
Parameters:
-
panel
Object
_render
(
Obj
-
_panelBody
Create a new panel - runs only once unless the panel to activate does not excist
Parameters:
-
_panelBody
Obj
Returns:
Obj:
_panelBody
activate
()
Check if the panel excists, if so unhide it, otherwise create it through the _render() method
activateMenuItem
(
-
panel
Activate the triggered side menu item
Parameters:
-
panel
Object
addHTML
(
-
config
Add html to the panel
Parameters:
-
config
Obj
addPanel
(
-
panel
Adds a panel to the wizard
Parameters:
-
panel
Object
close
()
Close the wizard, closes the dialog
createSideMenu
(
-
panel
Create the navigation tree
Parameters:
-
panel
Object
getData
(
-
data
return the data for the given panel
Parameters:
-
data
Object
insert
(
-
config
Insert a new panel to the currently active wizard
Parameters:
-
config
Obj
nextPanel
(
-
panel
Displays the next panel
Parameters:
-
panel
Object
remove
(
Obj
-
object
Remove the object from the panel(Body)
Parameters:
-
object
Obj
Returns:
Obj:
_panelBody
setData
(
-
data
Save the current formdata for the active panel to the _data[] array
Parameters:
-
data
Object
start
()
Starts the wizard, creates the dialog and adds the contents stored in _wizardContent
Properties
_currentPanel
Object
_data
Object
_panelBody
Array
_previousPanel
Object
_wizardContent
Object
Stores the wizard panels
Events
onRender
Method triggered after the panel has been rendered
Example:
var pn = panel1.onRender(function () {
alert('Panel onRender');
});
onRender
Method triggered after the panel has been turned hidden
Example:
var pn = panel1.onExit(function () {
alert('Panel onExit');
});