An interface for the pasted cells event.

interface IPastedCells {
    cellCount: number;
    previousInteraction: null | "copy" | "cut" | "paste";
}

Properties

cellCount: number

The number of cells that were pasted.

This can be used to perform actions on all the pasted cells, the current cell should be the last pasted cell.

previousInteraction: null | "copy" | "cut" | "paste"

The previous local clipboard interaction related to the pasted cells.

If the pasted cells have been copied or cut from the same notebook, this value will be the last interaction that was performed on the local clipboard. It should be either copy, cut or paste. If the pasted cells have been copied or cut from another notebook, this value will be null.