Angular trabajando con el portapapeles

    En este tema se explica cómo realizar operaciones de portapapeles en el componente de hoja de cálculo Ignite UI for Angular.

    Angular Working with Clipboard Example

    Dependencies

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

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

    Usage

    The following code snippet shows how you can execute commands related to the clipboard in the Angular IgxSpreadsheetComponent 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