diff --git a/src/TableCell.tsx b/src/TableCell.tsx index adc8816a4..3cad2b111 100644 --- a/src/TableCell.tsx +++ b/src/TableCell.tsx @@ -18,6 +18,7 @@ export interface TableCellProps { indent?: number; indentSize?: number; column?: ColumnType; + title?: string; expandIcon?: React.ReactNode; component?: CustomizeComponent; } @@ -56,7 +57,7 @@ export default class TableCell extends React.Component extends React.Component; + if (textProps && textProps.children && typeof textProps.children === 'string') { + tdProps.title = textProps.children; + } } }