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

    복사 동작은 브라우저 및 운영 체제에서 정의한 기본 상호 작용으로 작동합니다. 따라서 복사 및 붙여넣기 동작의 경우 다음과 같습니다.

    • Windows/Unix 기반
      • CTRL + C / CTRL + Ins를 키보드 단축키로
      • CTRL + V / SHIFT + Ins를 키보드 단축키로
      • 브라우저 메뉴를 통해 작업 복사
    • 맥 OS
      • CMD +를 C 키보드 단축키로
      • CMD +를 V 키보드 단축키로
      • 브라우저 메뉴를 통해 작업 복사

    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.

    • 그리드가 편집 모드에 있는 동안에는 복사 동작이 비활성화됩니다.
    • 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 the clipboardOptions.

    Additional Resources

    우리 커뮤니티는 활동적이며 항상 새로운 아이디어를 환영합니다.