material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Number of selected items not displayed in table header

Open calebhypes opened this issue 7 years ago • 1 comments

Describe the bug When items are selected, the number of items does not display as shown in the demos/documentation, even with selection: true

To Reproduce Steps to reproduce the behavior:

  1. Setup a new table similar to below:
<MaterialTable
            columns={this.state.columns}
            data={this.state.data}
            options={{
              filtering: true,
              paging: true,
              maxBodyHeight: 600,
              selection: true,
              pageSize: 15,
              pageSizeOptions: [15, 20, 25, 50, 100],
              showTitle: false,
              columnsButton: true,
              toolbarButtonAlignment: "right",
              actionsColumnIndex: 1
            }}
            actions={[
              {
                icon: "settings",
                tooltip: "Actions",
                // isFreeAction: true,
                onClick: (event, rowData) => {
                  console.log(rowData);
                }
              }
            ]}
          />
  1. Click on a rows checkbox
  2. See the header not display the number of selected items.

Expected behavior The number of selected items should be displayed within the table header as shown below: Screen Shot 2019-04-08 at 2 39 58 PM

Screenshots Screen Shot 2019-04-08 at 2 40 38 PM

Desktop (please complete the following information):

  • OS: MacOS Mojave 10.14.2
  • Browser: Chrome
  • Version: Version 73.0.3683.86

calebhypes avatar Apr 08 '19 18:04 calebhypes

This is done with version 1.31.0

mbrn avatar Apr 11 '19 13:04 mbrn