Change wtBorder current border color specific cell?

Tags: #<Tag:0x00007fc67753a4b8>

Hi again guys,

This time I want to know if there is a way I can change the border color of the wtBorder current?

If for example, I want to make the wtBorder color green only row 4, col 3, is that possible?

Thank you!

Hi @hugh

Admittedly you can use afterDrawSelection - https://handsontable.com/docs/7.4.2/Hooks.html#event:afterDrawSelection - to change the additional style of selection. Here is a demo to show how we could work with this hook - https://jsfiddle.net/uo31xp6j/

But generally, I think this isn’t possible to achieve what you want.

I mean that this feature to change the border of .wtBorder .current is hiding deeply in our code. Here is a code snippet responsible for that -


As you can see this border is really background-color.
Nevertheless, we don’t expose this as external API.

Thanks for the solution!