Skip to content
Advertisement

Is there any way to change the message of empty data in RSuite-table?

I would like to change the message that appears when the prop data is an empty array. I cannot find any prop to modify this. Is there any solution for this? I would like to translate this message to other language.

Advertisement

Answer

There is a prop locale that allows this behavior to get done. You can pass an object to this prop in order to change the message of empty data as follows:

locale={{ emptyMessage: "No data found"}}
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement