PdfCellCustomizeArgs
Represents event arguments passed to the onPdfCellCustomize callback. Allows cell-level customization including images, hyperlinks, and styling. Triggered for each cell during PDF generation, enabling data-driven customization.
Props
The following table outlines the props for the PdfCellCustomizeArgs:
| Name | Type | Default | Description |
|---|---|---|---|
| colSpan | number | undefined | Optional column spanning configuration for the PDF cell. When set on a group header cell, it controls how many visible columns the caption spans. |
| column | - | Column definition for the current cell.
Contains | |
| data | T | - | Row data object for the current cell. Provides access to all fields in the record for conditional logic. |
| groupLevel | number | 0 | Indicates the nesting depth of the group header for grouped exports. |
| hyperLink | undefined | Optional hyperlink configuration for the PDF cell. If set, the cell value becomes a clickable link in the exported PDF. Supports URLs and mailto links. | |
| image | undefined | Optional image to display in the PDF cell instead of text. If set, the image is rendered and the value is ignored. Useful for rendering photos, logos, or other visual data. | |
| isGroupHeader | boolean | false | Indicates whether the current cell belongs to a group header row created during grouped export. |
| style | undefined | Optional styling configuration for the PDF cell. Allows customization of cell appearance including colors, fonts, and alignment. Supports colors (RGB), font styles, and text alignment. | |
| value | string | number | boolean | - | The current cell value to be rendered in the PDF. Defaults to the formatted value from the grid. Assign a new value to override. |