simple-table-core 3.9.8 → 3.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,6 +53,8 @@ export interface SimpleTableConfig {
53
53
  /** @see SimpleTableProps.showRowSelectionColumn */
54
54
  showRowSelectionColumn?: boolean;
55
55
  enableStickyParents?: boolean;
56
+ /** @see SimpleTableProps.enableVirtualization */
57
+ enableVirtualization?: boolean;
56
58
  errorStateRenderer?: VanillaErrorStateRenderer;
57
59
  expandAll?: boolean;
58
60
  externalFilterHandling?: boolean;
@@ -57,6 +57,13 @@ export interface SimpleTableProps {
57
57
  */
58
58
  showRowSelectionColumn?: boolean;
59
59
  enableStickyParents?: boolean;
60
+ /**
61
+ * When false, disables both row and column virtualization so every row and
62
+ * column is rendered in the DOM. Useful for print, a11y tooling, or small
63
+ * datasets that still need a fixed `height` / `maxHeight` for layout.
64
+ * Default true.
65
+ */
66
+ enableVirtualization?: boolean;
60
67
  errorStateRenderer?: ErrorStateRenderer;
61
68
  expandAll?: boolean;
62
69
  externalFilterHandling?: boolean;
@@ -108,6 +108,11 @@ export interface CellRenderContext {
108
108
  * here makes every column count as visible, disabling virtualization.
109
109
  */
110
110
  mainSectionViewportWidth?: number;
111
+ /**
112
+ * When false, skip column virtualization and render every body cell in the
113
+ * main section. Default true. Mirrors {@link SimpleTableProps.enableVirtualization}.
114
+ */
115
+ enableVirtualization?: boolean;
111
116
  onCellEdit?: (params: CellEditParams) => void;
112
117
  onCellClick?: (params: CellClickParams) => void;
113
118
  onRowGroupExpand?: (props: OnRowGroupExpandProps) => void | Promise<void>;
@@ -60,6 +60,8 @@ export interface HeaderRenderContext {
60
60
  mainBodyRef: RefObject<HTMLDivElement>;
61
61
  mainSectionContainerWidth?: number; /** Main section *content* width (sum of all non-pinned column widths). NOT the virtualization viewport. */
62
62
  mainSectionViewportWidth?: number; /** Main section *visible* viewport width (container minus pinned); use for getVisibleCells when !pinned */
63
+ /** When false, skip column virtualization and render every header cell in the main section. Default true. */
64
+ enableVirtualization?: boolean;
63
65
  onColumnOrderChange?: (headers: HeaderObject[]) => void;
64
66
  onColumnSelect?: (header: HeaderObject) => void;
65
67
  onColumnWidthChange?: (headers: HeaderObject[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-table-core",
3
- "version": "3.9.8",
3
+ "version": "3.9.9",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/src/index.d.ts",