qlik-oss/sn-table

View on GitHub
src/is-printing.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { TableLayout, ViewService } from "./types";

const isPrinting = (layout: TableLayout, viewService: ViewService) =>
  !!(layout.snapshotData || viewService.viewState?.visibleHeight);

export default isPrinting;