Function isPivotTableModel

  • True for the table model of a pivot table (PivotTableModel). Works across copies of the core.

    Parameters

    • o: any

      the object to check, e.g. tableApi.getTableModel()

    Returns o is PivotTableModel<any>

    true for a pivot table

    Example

    const model = tableApi.getTableModel();
    const config = isPivotTableModel(model) ? model.getPivotConfig() : undefined;

    Since

    1.1.94