2017-10-12 63 views
0

我正在使用react-ui表格組件,我需要在頁面之間進行分頁瀏覽。 如何添加選項以加載第一頁和最後一頁,或者設置表格分頁中所有頁面的列表?導航到材料 - 用戶界面表格中的第一頁和分頁

謝謝。

+0

你嘗試過什麼嗎? –

+0

Material-ui @ next具有本地分頁組件,但您必須自己實現頁面更改功能。 https://material-ui-next.com/demos/tables/ – MEnf

+0

我如何實現表分頁組件的特定功能? – wijden

回答

0

我實現了第一頁和最後一頁:

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

,但我想在材料的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