Get Free Trial
API reference
Table of contents

expandCell

expandCell(axisName: string, tuple: string[], measureName: string)

[starting from version 2.9.6]

Expands a specific node on the grid and charts.

Parameters

  • axisName — String. The node’s axis. It can be either "rows" or "columns".
  • tuple — Array of strings. Consists of member unique names that identify the node in the table.
  • measureName optional — String. The measure’s unique name. Use the measureName to expand a node only for a specific measure when:
    • The slice has several measures.
    • The node to expand is nested in measures.
    If the measureName is not defined, the node will be expanded for all measures used in the slice.

Examples

1) Expand a specific node:

flexmonster.expandCell("rows", ["Accessories", "Canada"]);

See the full code on JSFiddle.

2) Expand a specific node for a specific measure:

flexmonster.expandCell("rows", ["Canada"], "Price");

See also

collapseCell
expandData
expandAllData