mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Sort alphabetically the columns in the viewcolumn dialog.

Open cristiandaulisio opened this issue 2 years ago • 3 comments

Is it possible?

Thanks

cristiandaulisio avatar Jan 17 '23 10:01 cristiandaulisio

you can display the sorted data coming from your BE by using onTableChange: (action, tableState) => {...}.

gitMkara avatar Feb 17 '23 13:02 gitMkara

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 immagine

but not the order of the column in table.

cristiandaulisio avatar Feb 17 '23 14:02 cristiandaulisio

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.

gitMkara avatar Feb 17 '23 15:02 gitMkara