react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Pagination row per page show double arrow/weird arrow

Open Adtyya opened this issue 2 years ago • 9 comments

image

See at rows per page number, it has two arrow.

Tailwindcss ^3.3.3 React & ReactDOM ^18.2.0 Create this app using CRA

Adtyya avatar Aug 28 '23 08:08 Adtyya

code?

zahir-dct avatar Aug 28 '23 10:08 zahir-dct

  <DataTable
    columns={columns}
    data={data}
    progressPending={loading}
    pagination
    paginationServer
    paginationTotalRows={totalRows}
    onChangeRowsPerPage={handlePerRowsChange}
    onChangePage={handlePageChange}
    paginationComponentOptions={paginationComponentOptions}
    customStyles={tableCustomStyles}
    paginationPerPage={10}
    progressComponent={<Loading />}
  />

Adtyya avatar Aug 29 '23 03:08 Adtyya

paginationComponentOptions and tableCustomStyles??

zahir-dct avatar Aug 29 '23 11:08 zahir-dct

@zahir-dct I am also facing this on the project I am working.

this is how it looks like:

image

I wanted to remove the solid arrow one and retain the 2-line arrow.

Thank you in advance :)

THis is my code:

            customStyles={{
                headCells: {
                    style: {
                        fontWeight: "bold",
                        backgroundColor: "#F4F9FF",
                    },
                },
            }}
            {...props}
            columns={props.loading ? columnsLoading : props.columns}
            data={props.loading ? Array(8).fill({}) : props?.data || []}
            className="pb-12"
            paginationRowsPerPageOptions={[10, 20, 30]}
            responsive
        />

ipacs13 avatar Sep 14 '23 18:09 ipacs13

I'm facing the same issue. Have you been able to resolve it?

mesamtimmar1 avatar Feb 25 '24 20:02 mesamtimmar1

Having the same issue on many projects.

memmen avatar Apr 08 '24 18:04 memmen

I created pr with fix https://github.com/jbetancur/react-data-table-component/pull/1224

memmen avatar Apr 08 '24 18:04 memmen