WarUI

Copy range to clipboard

GRID-A12-F08P0baselinePlanned

Ctrl/Cmd+C copies the selected range to the clipboard in several formats at once: text/plain as TSV and text/html as a table. Values go through a typed serializer for each column, so dates and numbers stay correct.

Planned. This page shows the specification from issue #191. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An orders grid with dates, numbers and booleans. A paste-preview textarea is shown next to it.

Expected behavior

Pressing copy writes the data, and the preview shows TSV with tab and newline separators. A brief flash outlines the copied range.

Planned API surface

clipboard.enabledclipboard.includeHeadersclipboard.serializeCellcopySelection()clipboard:copyclipboard:beforeCopy

Acceptance criteria

  • Cells containing tabs, newlines or quotes are quoted following RFC 4180-style rules adapted to TSV (pending)
  • beforeCopy can change or cancel the payload (pending)
  • When a multi-range selection is not rectangular, the copy is blocked with a clear message (pending)
  • Formatted mode uses the column's display formatter (pending)