Visão geral da área de transferência do React Grid
Copy to clipboard operations are now available in the IgrGrid. This functionality provides a fast, easy and customizable way to copy data of the React IgrGrid through the current multi cell data select. System Clipboard behavior gives the user ability to copy data from the IgrGrid into Excel or other external programs.
React Grid Clipboard Example
Functionality
O comportamento de cópia está funcionando com a interação padrão definida pelo navegador e pelo sistema operacional. Assim, para os comportamentos de copiar e colar, estes são:
- Baseado em Windows/Unix
- CTRL + C / CTRL + Ins como um atalho de teclado
- CTRL + V / SHIFT + Ins como um atalho de teclado
- Copiar ação através do menu do navegador
- macOS
- CMD + C como atalho de teclado
- CMD + V como atalho de teclado
- Copiar ação através do menu do navegador
Limitations
- Tanto os eventos de corte quanto de cópia não são suportados nativamente no Internet Explorer. A exceção é o evento de colagem (ex.: 11), que é emitido, mas não expõe a
ClipboardDatapropriedade no evento.
[!Note] In order to copy cells in IE 11, you can use the keyboard selection. Hold the SHIFT key in order to make a multi-cell selection, press CTRL + C in order to copy.
- O comportamento de cópia é desativado enquanto a grade está no modo de edição.
- The current version of this feature covers only the copy from grid behavior. Later on we plan to expose
pastewithin grid behavior.
API Usage
We expose clipboardOptions property, which handles the following options:
EnabledEnables/disables copying of selected cells.CopyHeadersInclude the associated headers when copying.CopyFormattersApply any existing column formatters to the copied data.SeparatorThe string separator to use the for formatting the data in the clipboard. Default is/t
[!Note] Excel can automatically detect text that is separated by tabs (tab-delimited
/t) and properly paste the data into separate columns. When the paste format doesn't work, and everything you paste appears in a single column, then Excel's delimiter is set to another character, or your text is using spaces instead of tabs.
GridCopyEmitted when a copy operation is executed. Fired only if copy behavior is enabled through theclipboardOptions.
Additional Resources
- Paginação
- Filtragem
- Classificação
- Resumos
- Resumos
- Fixação de coluna
- Escolha
- Virtualização e desempenho
- Cabeçalhos de várias colunas
Nossa comunidade é ativa e sempre acolhedora para novas ideias.