I’m new using Antd
, I’ve create a table with sort functionalities, but I need to change the text on the tooltip of the sorter.
Sorter tooltip:-
Thanks in advance, if you need any extra code snippet just please let me know.
Advertisement
Answer
I was able to solve it this way:
JavaScript
x
8
1
<Table showSorterTooltip={{ title: 'Clic para ordenar' }}
2
columns={tableColumn}
3
dataSource={item}
4
rowClassName='ps-pointer'
5
rowKey={record => record.codigo_pedido_compra}
6
style={{ cursor: 'pointer' }}
7
/>
8
The trick is to use the showSorterTooltip property.