Need a special offer?Find out if your project fits.
+
API reference
  • API Reference for older versions
  • Table of contents

    collapseCell

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

    [starting from version 2.9.6]

    Collapses a specific node on the grid and charts.

    Parameters

    Parameter/Type Description
    axisName
    String
    The node's axis. It can be either "rows" or "columns".
    tuple
    String[]
    Consists of member unique names that identify the node in the table.
    measureName
    String
    optional The measure's unique name. Use the measureName to collapse a node only for a specific measure when:
    • The slice has several measures.
    • The node to collapse is nested in measures.
    If the measureName is not defined, the node will be collapsed for all measures used in the slice.

    Examples

    1) Collapse a specific node:

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

    See the full code on JSFiddle.

    2) Collapse a specific node for a specific measure:

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

    See also

    expandCell
    collapseData
    collapseAllData