feat(table): add tooltip to table header (#37179)

This commit is contained in:
SBIN2010
2026-01-21 22:01:57 +03:00
committed by GitHub
parent c564655f39
commit 212559dab2
3 changed files with 13 additions and 1 deletions

View File

@@ -810,6 +810,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
isMetric,
isPercentMetric,
config = {},
description,
} = column;
const label = config.customColumnName || originalLabel;
let displayLabel = label;
@@ -1094,7 +1095,9 @@ export default function TableChart<D extends DataRecord = DataRecord>(
Header: ({ column: col, onClick, style, onDragStart, onDrop }) => (
<th
id={`header-${headerId}`}
title={t('Shift + Click to sort by multiple columns')}
title={
description || t('Shift + Click to sort by multiple columns')
}
className={[className, col.isSorted ? 'is-sorted' : ''].join(' ')}
style={{
...sharedStyle,