Skip to content

rendererOptions.table.rowTotals/colTotals not working #187

@iguchi-naoto-mf

Description

@iguchi-naoto-mf

Description

The rendererOptions.table.rowTotals and rendererOptions.table.colTotals options do not work in react-pivottable 0.11.0.

According to PivotTable.js documentation, these options should control the visibility of row and column totals.

Steps to Reproduce

<PivotTableUI
  data={data}
  onChange={setPivotState}
  {...pivotState}
  rendererOptions={{
    table: {
      rowTotals: false,
      colTotals: false,
    }
  }}
/>

Expected Behavior

Row and column totals should be hidden when set to false.

Actual Behavior

Row and column totals are still displayed regardless of the setting.

Environment

  • react-pivottable: 0.11.0
  • React: 18.3.1

Workaround

Currently using CSS to hide totals:

.pvtTotal, .pvtTotalLabel, .pvtGrandTotal {
  display: none;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions