Web Components Grid Clipboard Overview
Copy to clipboard operations are now available in the IgcGridComponent
. This functionality provides a fast, easy and customizable way to copy data of the Web Components IgcGridComponent
through the current multi cell data select. System Clipboard behavior gives the user ability to copy data from the IgcGridComponent
into Excel or other external programs.
Web Components 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
- Both the cut and copy events are not natively supported in Internet Explorer. The exception is the
paste event (IE 11) which is emitted but does not expose the
ClipboardData
property in the event.
[!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
paste
within grid behavior.
API Usage
We expose clipboardOptions
property, which handles the following options:
Enabled
Enables/disables copying of selected cells.CopyHeaders
Include the associated headers when copying.CopyFormatters
Apply any existing column formatters to the copied data.Separator
The 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.
GridCopy
Emitted 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.