React-bootstrap-table2: hidePageListOnlyOnePage not working

Created on 8 Mar 2019  路  3Comments  路  Source: react-bootstrap-table/react-bootstrap-table2

I'm not able to hide the pagination bar for my table when there's only 1 page. I tried setting hidePageListOnlyOnePage to true, but I still see a button below my table that says "1". I'm testing with 1 row (1 page).

Here are the options for my table:

<BootstrapTable
   bootstrap4
   hover
   keyField='id'
   data={users}
   columns={ columns }
   pagination={ paginationFactory({ hidePageListOnlyOnePage:true }) }
   filter={ filterFactory() }
   noDataIndication="No Users to Display"
   selectRow={ selectRow }
/>

Most helpful comment

@Lilian1331, I solved my problem putting this css

.react-bootstrap-table-pagination-list-hidden {
    display: none;
}

All 3 comments

Mine is not working too, after debbuging a little see that the react-bootstrap-table-pagination-list-hidden is been applied but the style not

I have the same issue too.

@Lilian1331, I solved my problem putting this css

.react-bootstrap-table-pagination-list-hidden {
    display: none;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

nskiro picture nskiro  路  4Comments

bogannathan picture bogannathan  路  4Comments

rsgoss picture rsgoss  路  4Comments

josefheld picture josefheld  路  3Comments

imtmh picture imtmh  路  3Comments