如何制作个性化的表格分页?

huangapple go评论72阅读模式
英文:

How do I make personalized table pagination?

问题

我怎样给 MUI 组件加样式像这样?

如何制作个性化的表格分页?

我猜使用 Pagination 组件和 Select 可能行,有什么建议?

英文:

How do I style mui component like this?

如何制作个性化的表格分页?

I guess using Pagination component and Select could work, any suggestions?

答案1

得分: 1

假设这是使用 MUI-X DataGrid,

您可以覆盖 DataGrid 的页脚中的所有组件,包括分页、选择和排版组件。

查看此链接以了解更多信息:https://mui.com/x/api/data-grid/data-grid/

假设这是使用 MUI Table,

您可以覆盖表格的页脚组件并添加自定义内容,或者只使用来自 MUI 的自定义组件。

查看这些链接以了解更多信息:https://mui.com/material-ui/api/table-pagination/, https://mui.com/material-ui/api/table-footer/

英文:

Assuming this is using the MUI-X DataGrid,

You can override all the components in the footer of the DataGrid, including the Pagination, the Select, and the Typography components.

See this for more info on how to do so: https://mui.com/x/api/data-grid/data-grid/

Assuming this is using the MUI Table,

You can override the footer component of the Table and add your own custom stuff, or just customized components from MUI.

See these for more info on how to do so: https://mui.com/material-ui/api/table-pagination/, https://mui.com/material-ui/api/table-footer/

huangapple
  • 本文由 发表于 2023年4月20日 01:23:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76057269.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定