Skip to content

[docs] Add recipe for triggering clipboard copy from a button#22967

Open
michelengelen wants to merge 6 commits into
mui:masterfrom
michelengelen:recipe/datagrid/18897
Open

[docs] Add recipe for triggering clipboard copy from a button#22967
michelengelen wants to merge 6 commits into
mui:masterfrom
michelengelen:recipe/datagrid/18897

Conversation

@michelengelen

Copy link
Copy Markdown
Member

Adds a demo showing how to reproduce the Ctrl+C copy priority logic using only public APIs (getSelectedCellsAsArray, getCellSelectionModel, getDataAsCsv, gridFocusCellSelector), so users can trigger a copy from a button, context menu, or touch interface without relying on the keyboard shortcut.

Resolves #18897

Signed-off-by: michel <jsnerdic@gmail.com>
Signed-off-by: michel <jsnerdic@gmail.com>
@michelengelen michelengelen self-assigned this Jun 26, 2026
@michelengelen michelengelen added docs Improvements or additions to the documentation. scope: data grid Changes related to the data grid. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. recipe labels Jun 26, 2026
Signed-off-by: michel <jsnerdic@gmail.com>
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@michelengelen michelengelen changed the title [docs][data-grid] Add recipe for triggering clipboard copy from a button [docs] Add recipe for triggering clipboard copy from a button Jun 26, 2026
michelengelen and others added 2 commits June 26, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. recipe scope: data grid Changes related to the data grid. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[data grid] How to copy cell selection without keyboard shortcuts?

1 participant