Angular Working with Clipboard

    This topic explains how to perform clipboard operations.

    Demo

    Dependencies

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

    import { IgxSpreadsheetComponent } from 'igniteui-angular-spreadsheet';
    import { SpreadsheetAction } from 'igniteui-angular-spreadsheet';
    

    Usage

    The following snippet shows how you can setup the data validation rules

    @ViewChild("spreadsheet", { read: IgxSpreadsheetComponent })
    public spreadsheet: IgxSpreadsheetComponent;
    
    // ...
    
    public cut(): void {
        this.spreadsheet.executeAction(SpreadsheetAction.Cut);
    }
    
    public copy(): void {
        this.spreadsheet.executeAction(SpreadsheetAction.Copy);
    }
    
    public paste(): void {
        this.spreadsheet.executeAction(SpreadsheetAction.Paste);
    }