mui-datatables
mui-datatables copied to clipboard
Sort alphabetically the columns in the viewcolumn dialog.
Is it possible?
Thanks
you can display the sorted data coming from your BE by using onTableChange: (action, tableState) => {...}
.
if i change the column inside tableState i change the column order in table AND the column order in ViewColumn dialog.
i want change ONLY the label in viewColumn dialog
but not the order of the column in table.
I see. You can use <MUIDataTable components={...} />
. You're able to pass custom components to there. For example, copy TableToolbar codes in this repo, change wherever you want. in my opinion, it'll be helpful for you.