mui 数据表更改 "Sorry,no matching records found" 消息
mui datatables change "Sorry,no matching records found" message
我正在使用 MUIDataTable,每次数据数组为空时都会显示一条消息:
“抱歉,没有找到匹配的记录”。
我想自定义这条消息,这样我就可以写任何我想写的东西。
我会很感激你的帮助。
您应该先尝试查看文档:)
这是它的文档:https://github.com/gregnb/mui-datatables#localization
<MUIDataTable
options={{
textLabels: {
body: {
noMatch: 'Your custom message here',
}
}
}}
/>
我正在使用 MUIDataTable,每次数据数组为空时都会显示一条消息: “抱歉,没有找到匹配的记录”。 我想自定义这条消息,这样我就可以写任何我想写的东西。 我会很感激你的帮助。
您应该先尝试查看文档:) 这是它的文档:https://github.com/gregnb/mui-datatables#localization
<MUIDataTable
options={{
textLabels: {
body: {
noMatch: 'Your custom message here',
}
}
}}
/>