【问题标题】:navigate to first and page in material-ui table pagination导航到material-ui表格分页中的第一页和页面
【发布时间】:2018-03-24 13:46:33
【问题描述】:

我正在使用 react material-ui 表格组件,我需要在分页中的页面之间导航。 如何添加加载第一页和最后一页的选项,或在表格分页中设置所有页面的列表?

谢谢。

【问题讨论】:

  • 你试过了吗?
  • Material-ui@next 具有原生分页组件,但您必须自己实现页面更改功能。 material-ui-next.com/demos/tables
  • 如何实现表格分页组件的特定功能?

标签: reactjs material-ui


【解决方案1】:

我实现了第一页和最后一页:

`<TableCell>
 <IconButton onClick={this.handleFirstPage} >
 <PaginationFirstPage />
 </IconButton>
 <IconButton onClick={this.handleLastPage} >
 <PaginationLastPage />
 </IconButton>
 </TableCell>`

但是我想在material-ui的tablepagination组件中在上一页图标之前添加第一页图标,在下一个图标之后添加ast页面图标

                                                                                                                  but the position is at the end of pagination and i want to add the first icon  page before the icon of previous page and the last page after the next page 

【讨论】:

    猜你喜欢
    • 2021-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-28
    • 1970-01-01
    • 2021-11-19
    • 2019-09-18
    • 1970-01-01
    相关资源
    最近更新 更多