TableColumn
Column Type
Properties
bindAsUnsafeHtml
By default, the property is bound using normal data binding <span></span>. If this property is set to true, the property will be bound as <span [innerHTML]="content" />.
DANGER If enabling this feature, make sure the source of the data is trusted. This can be a vector for HTML injection attacks.
canAutoResize
Whether the column can automatically resize to fill extra space. Default value: true.
cellClass
cellClass?: string | ((data: {
row: TRow;
group?: TRow[];
column: TableColumn<TRow>;
value: any;
rowHeight: number;
}) => string | Record<string, boolean>)
CSS classes to apply to the body cell.
cellTemplate
Template used to render body cells.
checkboxable
Whether the column displays a selection checkbox. Only applies when selection mode is checkbox.
comparator
Custom client-side sort comparator. It receives cell values and their respective rows; a standard two-argument comparison function is also supported.
draggable
Whether the column can be dragged to reorder it. Default value: true.
flexGrow
Grow factor relative to other columns. Available extra width is distributed proportionally according to all columns' flexGrow values. Default value: 0.
frozenLeft
Whether the column is frozen to the left. Default value: false.
frozenRight
Whether the column is frozen to the right. Default value: false.
ghostCellTemplate
Ghost Cell template ref
headerCheckboxable
Whether the header displays a selection checkbox. Only applies when selection mode is checkbox.
headerClass
CSS classes to apply to the header cell.
headerTemplate
Template used to render header cells.
isTreeColumn
Is tree displayed on this column
maxWidth
Maximum column width in pixels.
minWidth
Minimum column width in pixels.
name
Column label. When omitted, the property value is used and decamelized.
pipe
Custom pipe used to transform cell values.
prop
Property used to bind row values. It can be a nested property path or a numeric index.
When omitted, the name is converted to camel case.
resizeable
Whether the user can manually resize the column. Default value: true.
sortable
Whether row values can be sorted by this column. Default value: true.
summaryFunc
Summary function
Null and undefined have different meanings: - undefined will use the default summary function - null will not compute a summary
summaryTemplate
Summary cell template ref
treeLevelIndent
Width of the tree level indent
treeToggleTemplate
Tree toggle template ref
width
Default column width in pixels. Default value: 150.