是否可以在每页的行中添加显示所有页面?

Is it possible to add show all pages in the rows per page?

我每页有这些行选项10,15,100是否可以添加一个选项来查看所有行?如果是这样,怎么办?我似乎无法在文档中找到它:

Codesandbox:https://codesandbox.io/s/muidatatables-custom-toolbar-forked-xfhb5h?file=/index.js:1372-1394

  const options = {
    search: searchBtn,
    download: downloadBtn,
    print: printBtn,
    viewColumns: viewColumnBtn,
    filter: filterBtn,
    filterType: "dropdown",
    responsive: "standard",
    tableBodyHeight,
    tableBodyMaxHeight,
    onTableChange: (action, state) => {
      console.log(action);
      console.dir(state);
    }
  };

要实现这一点,请从选项中删除 tableBodyHeight,tableBodyMaxHeight, 并将以下道具添加到您的 options 对象:

    responsive: "scrollFullHeight",
    pagination: false,
    rowsPerPageOptions: [],

因此,您的选项对象应如下所示:

const options = {
    search: searchBtn,
    download: downloadBtn,
    print: printBtn,
    viewColumns: viewColumnBtn,
    filter: filterBtn,
    filterType: "dropdown",
    responsive: "scrollFullHeight",
    pagination: false,
    rowsPerPageOptions: [],

    onTableChange: (action, state) => {
      console.log(action);
      console.dir(state);
    }
  };

Here 是一个工作示例。