DataAreaView.getStackPanel

Syntax

getStackPanel() : PP.Ui.StackPanel;

Description

The getStackPanel method returns a container that contains data area objects and settings of objects' positions.

Comments

This method returns an object of the PP.Ui.StackPanel type, that contains data area objects, such as control bar PP.Prx.Ui.ControlBar and the data table PP.Prx.Ui.GridBox, together with position settings for these objects.

Example

To execute this example, the HTML page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The source regular report must contain one or more controls.

// Get data area view
view = reportBox.getDataView();
// Get container of data area objects
sPanel = view.getStackPanel();
// Set vertical layout for the elements
sPanel.setIsHorisontal(true);

After executing the example the elements are rendered using vertical layout.

See also:

DataAreaView