ColumnDef

constructor(header: String, headerStyle: ExcelStyle? = null, style: ExcelStyle? = null, cellStyle: (T) -> ExcelStyle?? = null, linkExtractor: (T) -> String?? = null, valueExtractor: (T) -> Any?? = null, formulaExtractor: (Int, T) -> String? = null)

Parameters

header

the column header text

headerStyle

optional style override for this column's header cell only

style

optional static style for data cells in this column

cellStyle

optional dynamic style for data cells, evaluated per item. Has the highest priority.

linkExtractor

optional lambda to extract a hyperlink URL from each item

valueExtractor

lambda to extract the cell value from each item