TreeLegendPanel.getContentPanel

Syntax

getContentPanel();

Description

The getContentPanel method returns the element that stores contents of the legend panel.

Comments

This method returns an object of the following type 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 legend panel, expand it, get the element that stores panel contents and show its ID. Get panel wizard and show its ID:

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

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

Panel ID: GridPanel5143

Wizard ID: TreeMapMaster499

See also:

 TreeLegendPanel