TreeColorPanel.getContentPanel

Syntax

getContentPanel();

Description

The getContentPanel method gets the element that stored color panel content.

Comments

This method returns an object of the PP.Ui.GridPanel.

Example

To execute the example the HTML page must contain the TreeMap component named «treeMap» and the component TreeMapMaster named «treeMapMaster» (see «Example of the TreeMapMaster and TreeMap Component Layout» ). Get color panel, expand it, get the element that stores panel contents and show its ID. Get panel wizard and show its ID:

// Get color panel
var colorPanel = treeMapMaster.getColorPanel();
// Expand the panel
colorPanel.expand();
// Get color panel contents
var contentPanel = colorPanel.getContentPanel();
// Show ID 
console.log("Panel ID: " + contentPanel.getId());
// Get panel wizard
var master = colorPanel.getTreeMaster();
// Show wizard ID
console.log("Master ID: " + master.getId());

After executing the example the browser console shows ID of the element that stores panel contents and ID of the panel wizard:

Panel ID: GridPanel2740

Wizard ID: TreeMapMaster499

See also:

 TreeColorPanel