【问题标题】:mui datatables change "Sorry,no matching records found" messagemui 数据表更改“抱歉,未找到匹配记录”消息
【发布时间】:2022-01-03 00:36:35
【问题描述】:

我正在使用 MUIDataTable 并且每次数据数组为空时都会显示一条消息: “对不起,没有找到匹配的记录”。 我想自定义此消息,以便我可以写任何我想要的。 非常感谢您的帮助。

【问题讨论】:

    标签: css reactjs material-ui mui-datatable


    【解决方案1】:

    您应该先尝试检查文档 :) 这是它的文档:https://github.com/gregnb/mui-datatables#localization

    <MUIDataTable
      options={{
        textLabels: {
          body: {
            noMatch: 'Your custom message here',
          }
        }
      }}
    />
    
    

    【讨论】:

    • 谢谢哥们,我是 React 新手,所以我一开始并没有想到
    猜你喜欢
    • 1970-01-01
    • 2015-11-14
    • 1970-01-01
    • 2015-07-06
    • 1970-01-01
    • 2019-11-01
    • 2011-10-27
    • 2015-09-14
    • 1970-01-01
    相关资源
    最近更新 更多