mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.57k stars 1.35k forks source link

[data grid] Can the dragging state icon be customized when re order a row? #10881

Closed LuisCarlosBarahona closed 1 year ago

LuisCarlosBarahona commented 1 year ago

Summary 💡

Not sure if it is possible to customize the pointer cursor with a plus when a row is reordered. It would be great if this could be customized via slotProps, or something similar.

Examples 🌈

WhatsApp Image 2023-11-02 at 16 40 24

Motivation 🔦

No response

Search keywords: drag icon row reorder

DanailH commented 1 year ago

@LuisCarlosBarahona you can use the .MuiDataGrid-rowReorderCell--draggable class to add your own custom styling, that is if you want to customize the cursor itself (which was what you mentioned in the issue description). Customizing only the icon that the row that is currently being dragged is another story and that is not possible at the moment.

github-actions[bot] commented 1 year ago

The issue has been inactive for 7 days and has been automatically closed. If you think that it has been incorrectly closed, please reopen it and provide missing information (if any) or continue the last discussion.