我有MUI 4和做表格分页.我从API收到的所有数据都没有分页,只有大约50项,因此它将是小型前端分页.有什么简单的输入来设置这个表的属性吗?我试着在网上复制示例,但是它们用于复杂的后端分页.不确定,对于(a)rowsPerPage(b)page或(c)onChangePage,我应该有什么.我的桌子没有任何特效.
<TablePagination
rowsPerPageOptions={[10, 25, 100]}
count={appointmentList.length}
rowsPerPage={10} // I want 10 to be default value from 10,25,100
page={5}
onChangePage={(_, p) => console.log('hello')}
/>