클립보드로 작업하는 React

    이 주제에서는 Ignite UI for React에서 클립보드 작업을 수행하는 방법을 설명합니다.

    React Working with Clipboard Example

    Dependencies

    Before making use of the clipboard you will want to import the SpreadsheetAction enumeration:

    import { IgrSpreadsheet } from 'igniteui-react-spreadsheet';
    import { SpreadsheetAction } from 'igniteui-react-spreadsheet';
    

    Usage

    The following code snippet shows how you can execute commands related to the clipboard in the React IgrSpreadsheet control:

    public cut(): void {
        this.spreadsheet.executeAction(SpreadsheetAction.Cut);
    }
    
    public copy(): void {
        this.spreadsheet.executeAction(SpreadsheetAction.Copy);
    }
    
    public paste(): void {
        this.spreadsheet.executeAction(SpreadsheetAction.Paste);
    }
    

    API References