API Docs for: 1.0.0
Show:

eLabSDK.Wizard.Panel Class

Extends eLabSDK.Wizard
Module: eLabSDK

Class that allows the creation of panels within a wizard

Constructor

eLabSDK.Wizard.Panel

(
  • object
)
async

Parameters:

  • object Object
    • onRender Function
      • Include your code here due to the aSync nature of this class

Example:

Methods

_checkForRequiredData

(
  • panel
)

Inherited from eLabSDK.Wizard:

Check if required data is availale to launch the wizard panel, display a log if logging enabled

Parameters:

  • panel Object

_createMainContainer

(
  • panel
)

Inherited from eLabSDK.Wizard:

Create the main container

Parameters:

  • panel Object

_handleNavigationButtonDisplay

(
  • panel
)

Inherited from eLabSDK.Wizard:

Display or hide buttons depending on which panel index is active

Parameters:

  • panel Object

_render

(
  • _panelBody
)
Obj

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
)

Inherited from eLabSDK.Wizard:

Activate the triggered side menu item

Parameters:

  • panel Object

addHTML

(
  • config
)

Add html to the panel

Parameters:

  • config Obj

addPanel

(
  • panel
)

Inherited from eLabSDK.Wizard:

Adds a panel to the wizard

Parameters:

  • panel Object

close

()

Inherited from eLabSDK.Wizard:

Close the wizard, closes the dialog

createSideMenu

(
  • panel
)

Inherited from eLabSDK.Wizard:

Create the navigation tree

Parameters:

  • panel Object

getData

(
  • data
)

return the data for the given panel

Parameters:

  • data Object

insert

(
  • config
)

Inherited from eLabSDK.Wizard:

Insert a new panel to the currently active wizard

Parameters:

  • config Obj

lockNavigation

(
  • config
)

Inherited from eLabSDK.Wizard:

Prevent the user from moving to a previous/next panel

Parameters:

  • config Obj

nextPanel

(
  • panel
)

Inherited from eLabSDK.Wizard:

Displays the next panel

Parameters:

  • panel Object

remove

(
  • object
)
Obj

Inherited from eLabSDK.Wizard

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

()

Inherited from eLabSDK.Wizard:

Starts the wizard, creates the dialog and adds the contents stored in _wizardContent

unLockNavigation

(
  • config
)

Inherited from eLabSDK.Wizard:

Re-enable navigation

Parameters:

  • config Obj

Properties

_currentPanel

Object

Inherited from eLabSDK.Wizard:

_data

Object

_panelBody

Array

_previousPanel

Object

Inherited from eLabSDK.Wizard:

_wizardContent

Object

Inherited from eLabSDK.Wizard:

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'); 
                      });