Interface PasteRequestIf<V>

Input of computePastePlan: what is pasted and where. All rows are displayed rows (display order after sorting and filtering), columns are model indices; shownColumns lists the visible columns in display order – hidden columns are skipped and not counted (like the fill handle).

Since

1.1.99

Type Parameters

  • V = unknown

Hierarchy

  • PasteRequestIf

Properties

anchorColumn: number

First column of the target (model index, must be in shownColumns).

anchorRow: number

First row of the target (display index).

canAddRows?: boolean

True if rows may be added below the last row (pasteAddsRows).

isWritable?: ((rowIndex, columnIndex) => boolean)

Type declaration

    • (rowIndex, columnIndex): boolean
    • false skips a target cell (not editable, calculated, group row); it still counts for the layout.

      Parameters

      • rowIndex: number
      • columnIndex: number

      Returns boolean

matrix: readonly (readonly V[])[]

The pasted cells (rows of values, at least one row and one column).

rowCount: number

Number of displayed body rows.

selection?: {
    columns: number;
    rows: number;
}

The selected target in rows × shown columns (from the anchor), if a range is selected: an integer multiple of the matrix tiles it (Excel), a single value fills it.

Type declaration

  • columns: number
  • rows: number
shownColumns: readonly number[]

The visible columns (model indices) in display order.