Custom text for Row Selection #294
-
Is it possible to create a custom text for row selection ? For example having "2 Results ( 1 selected )" insead of the normal "1 of 2 row(s) selected" ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Edit : Got it with "renderTopToolbar" |
Beta Was this translation helpful? Give feedback.
-
It depends how much you want to override. If you use You can just use This can be seen in the Remote Example on the docs site to show a custom error message. Another option would be to change the |
Beta Was this translation helpful? Give feedback.
It depends how much you want to override. If you use
renderTopToolbar
, you loose all of the built-in functionality of all the top toolbar.You can just use
muiToolbarAlertBannerProps.children
to change the exact message in the toolbar.This can be seen in the Remote Example on the docs site to show a custom error message.
Another option would be to change the
localization.selectedCountOfRowCountRowsSelected
prop to be that format.