mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(table): add tooltip to table header (#37179)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user