@xcelsior/ui-spreadsheets 1.1.8 → 1.1.10

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.
@@ -93,7 +93,7 @@ export const SpreadsheetHeader: React.FC<
93
93
  {/* Action buttons using unified ColumnHeaderActions */}
94
94
  <ColumnHeaderActions
95
95
  enableFiltering={column.filterable}
96
- enableHighlighting={!!onHighlightClick}
96
+ enableHighlighting={column.highlightable !== false && !!onHighlightClick}
97
97
  enablePinning={column.pinnable !== false}
98
98
  hasActiveFilter={hasActiveFilter}
99
99
  hasActiveHighlight={!!highlightColor}
package/src/types.ts CHANGED
@@ -22,6 +22,10 @@ export interface SpreadsheetColumn<T = any> {
22
22
  editable?: boolean;
23
23
  /** Whether the column can be pinned */
24
24
  pinnable?: boolean;
25
+ /** Whether the column can be highlighted (defaults to true) */
26
+ highlightable?: boolean;
27
+ /** Whether the column can have comments (defaults to true) */
28
+ commentable?: boolean;
25
29
  /** Type of data in the column (for filtering/formatting) */
26
30
  type?: 'text' | 'number' | 'date' | 'select' | 'boolean' | 'checkbox';
27
31
  /** Options for select type columns */