Overview

Columns define how data is displayed, formatted, and edited in the grid. Each column maps to a field in your data objects.

Column Type
 

Core Properties

PropertyTypeRequiredDescription
fieldstringYesProperty name in data object to display
titlestringYesColumn header text
headerInfostringNoInfo tooltip shown next to header (displays info icon)
Basic Columns
 

Sizing Properties

PropertyTypeDefaultDescription
widthstringautoColumn width (CSS value: '100px', '10%', 'auto')
minWidthstring-Minimum column width
maxWidthstring-Maximum column width
Column Sizing
 

Display Properties

PropertyTypeDefaultDescription
align'left' | 'center' | 'right''left'Text alignment in cells
textOverflow'wrap' | 'ellipsis''ellipsis'How to handle text overflow
sortablebooleaninheritsPer-column sortable override
filterablebooleaninheritsPer-column filterable override
Display Options
 

Styling Properties

PropertyTypeDescription
cellClassstringCSS class(es) applied to all cells in this column
cellClassCallback(value, row) => string | nullDynamic CSS class based on cell value or row data
Cell Styling
 

Formatting Callbacks

CallbackTypeDescription
formatCallback(value, row) => stringTransform value for display (text output)
templateCallback(row) => stringReturn HTML string for cell content
renderCallback(row, element) => voidDirect DOM manipulation for cell content
tooltipCallback(value, row) => string | nullDynamic tooltip text on hover
tooltipMemberstringProperty name containing tooltip text
Formatting Examples
 

Editing Properties

PropertyTypeDescription
editablebooleanPer-column editable override
editorEditorTypeEditor type: 'text', 'number', 'checkbox', 'select', 'combobox', 'date', 'autocomplete', 'custom'
editTriggerEditTriggerPer-column edit trigger override
editorOptionsEditorOptionsEditor-specific configuration (see Editors API)
showEditButtonbooleanShow edit button in cell
dropdownToggleVisibility'always' | 'on-focus'Per-column dropdown toggle visibility
openDropdownOnEnterbooleanEnter opens dropdown vs moves down
Editor Configuration
 

Validation Callbacks

CallbackTypeDescription
validateCallback(value, row) => string | nullReturn error message or null if valid (deprecated)
beforeCommitCallback(context) => ValidationResultValidate and optionally transform value before commit
cellEditCallback(context) => voidTake over cell editing with custom logic
Validation
 

Clipboard Callbacks

CallbackTypeDescription
beforeCopyCallback(value, row) => stringTransform value before copying to clipboard
beforePasteCallback(value, row) => unknownProcess pasted value before applying
Clipboard Handling
 

Complete Example

Full Column Configuration
 

Important Notes

  • field & title: Required for every column
  • Callback Priority: renderCallback > templateCallback > formatCallback > raw value
  • Tooltip Priority: tooltipCallback takes priority over tooltipMember
  • Validation: Prefer beforeCommitCallback over deprecated validateCallback
  • Type Safety: Use Column<T> generic for full TypeScript support