JavaScript

A5.PanelLayoutsetActivePanel Method

Syntax

A5.PanelLayout.setActivePanel(panel[,animation])

Arguments

panelstring

The name of the panel to activate. Multiple nested panels (such as a panel card in a panel layout) can be activated by using a ":" to separate names.

animationboolean

Whether or not to animate the panel layout transition. The default value is true.

Description

Activate a child panel of the layout.

Example

// assume pObj is a pointer to a panel class
pObj.setActivePanel('main'); // set the panel named "main" to be the active panel