WarUI

Print layout

GRID-A20-F14P1baselinePlanned

Renders a print-optimized, non-virtualized view of the grid with print styles, repeating table headers, page-break control and a preview before opening the browser print dialog. This avoids the common problem of printing only the visible viewport.

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

Live example

A virtualized grid with 500 rows and a 'Print' button.

Expected behavior

Preview mode shows the full print layout in an overlay with Print and Close buttons. Printing outputs all scoped rows, not just the visible viewport.

Planned API surface

print()printOptions.scopeprintOptions.titleprintOptions.avoidRowBreaksprintOptions.previewbeforePrint eventafterPrint event

Acceptance criteria

  • print() renders all scoped rows without virtualization. (pending)
  • The header row uses a table header group so it repeats on each printed page. (pending)
  • avoidRowBreaks prevents rows from splitting across pages where the browser supports it. (pending)
  • Interactive chrome (toolbars, scrollbars, checkboxes) is hidden in print. (pending)
  • The grid restores its previous state, including scroll and virtualization, after afterPrint. (pending)