JavaScript

A5.PanelCardcreate Method

Syntax

A5.PanelCard.create(id)

Arguments

idstring

The ID to use for the panel. If an element with the ID already exists the panel will created in that element.

Returns

elementelement

The panel element.

Description

Create the panel.

Discussion

When you have manually defined a panel class, you will need to create the panel element after the class has been created. You do this on the top most panel (if using A5.PanelNavigator or A5.PanelLayout). All child panel elements will automatically be created inside the top level panel element.

Example

// assume pObj is a pointer to a panel class
var pEle = pObj.create(); // create panel element
document.body.appendChild(pEle); // append to body