First task is to make sorting work when user clicks on header icon (right now it works only if I click on the right side from icon).
I found a solution to add this CSS, but if there is more straight way please let me know:
.handsontable span.colHeader.columnSorting::before {
content: ‘’;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
margin-top: 1px;
margin-left: 2px;
}
Second task is to add icons to header tooltip. I added plain text in there for now, but I will need svg or fontawesome icons right next to that text.
Third task is to set my columns width to auto, but only third column I need to set to 200 because it will have a lot of text and I want to make sure it won’t take too much space. I cannot set max width, because it also has to work with manualColumnResize.
Please let me know if there is any way to implement this. Thank you.
That is a default behavior as we needed to add the possibility to move and resize columns as well. It works this way across all our sorting demos Rows sorting - JavaScript Data Grid | Handsontable. The sorting is triggered when user click the icon/title of the column
Second task is to add icons to header tooltip. I added plain text in there for now, but I will need svg or fontawesome icons right next to that text.
Thank you for respond Aleksandra.
On the second task example that you’ve sent, icon was added to header but in my case I need to add icon to header Tooltip (https://www.w3schools.com/css/css_tooltip.asp) so when you hoover on column header it will show:
(Dog icon) “This icon represents dog”
(Cat icon) “This icon represents cat”
So svg or fontawesome icon followed by text inside Tooltip (or some call it Hint).
And also did you have any luck on third task?
“Third task is to set my columns width to auto, but only third column I need to set to 200 because it will have a lot of text and I want to make sure it won’t take too much space. I cannot set max width, because it also has to work with manualColumnResize”
Please let me know if it’s possible to implement them, thank you!
As the main issue seems to be solved I’ll allow myself to close this topic. Nevertheless, I’ll wait for any update from you on email (support@handsontable.com).