Function isAreaModelPivot

  • True for the body of a pivot table (AreaModelPivot). Works across copies of the core.

    Parameters

    • o: any

      the object to check, e.g. tableModel.getBodyModel()

    Returns o is AreaModelPivot<any>

    true for a pivot body

    Example

    const body = tableModel.getBodyModel();
    const total = isAreaModelPivot(body) ? pivotBody.getResult().getValue() : undefined;

    Since

    1.1.94