Home > Blockchain >  mui datatables change "Sorry,no matching records found" message
mui datatables change "Sorry,no matching records found" message

Time:11-25

I'm using MUIDataTable and every time the data array is empty a message is displayed: "Sorry,no matching records found" . I want to custom this message so i could write whatever i want. i would appreciate your help.

CodePudding user response:

You should try to check the documentation first :) Here is the documentation for it: https://github.com/gregnb/mui-datatables#localization

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

  • Related