Table component pagination props
See original GitHub issueVersion
3.1.1
Environment
macOs, node: 8.3.0
Reproduction link
https://github.com/ant-design/ant-design/blob/master/components/table/interface.tsx
Steps to reproduce
const tableConfig = {
loading: this.state.loading,
columns: columns,
dataSource: data,
pagination: false,
}
return (
<Table {...tableConfig}/>
)
What is expected?
hide the table pagination
What is actually happening?
Types of property ‘pagination’ are incompatible. Type ‘boolean’ is not assignable to type ‘false | PaginationProps | undefined’.
If I set the pagination: {}
, it work fine
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
TablePagination API - Material UI - MUI
TablePagination API. API reference docs for the React TablePagination component. Learn about the props, CSS, and other APIs of this exported module.
Read more >Pagination Props · react-bootstrap-table2 - GitHub Pages
Following we list all props for paginationFactory from react-bootstrap-table2-paginator ... Use pagination.page specify the current page when table render.
Read more >React Table Pagination Example | TanStack Table Docs
An example showing how to implement Pagination in React Table.
Read more >How to Build a Custom Pagination Component in React
Let's first look at what values we need as props to our Pagination component: totalCount: represents the total count of data available from ......
Read more >Implementing React table pagination handling one million ...
Once we have pagination hooks, replace the rows prop with page prop inside the useTable hooks because every data inside the table will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yesmeck like this http://www.typescriptlang.org/play/index.html#src=type Pagination %3D false | { size%3A number }%3B const p %3D { val%3A false%2C }%3B function table(pagination%3A Pagination) { console.log(pagination)%3B } table(p.val)%3B