StatTreeView.setColumnWidth

Syntax

setColumnWidth(index, width);

Parameters

index. Column index.

width. Column width value.

Description

The setColumnWidth method sets width for a specified column in the summary statistics tree.

Example

Executing the example requires that the HTML page contains the StatTreeView component named statTreeView (see Example of Creating the StatTreeView Component).  Set new width for both columns of the summary statistics tree:

// Change width of the Statistics Name column
statTreeView.setColumnWidth(0, 200);
// Change width of the Value column
statTreeView.setColumnWidth(1, 50);
// Refresh the dialog box that contains summary statistics
statTreeView.refresh();

After executing the example width of the Statistic Name and Value columns is changed:

See also:

StatTreeView