Index value of Selected Text for a particular cell

Tags: #<Tag:0x00007efc6264ad88>

How to get index of selected Text from a particular cell ?

After using hot.getSelected()[0][0] , I am getting a particular cell , From that I need to pick index of selectedText inside cell…

Hi @tarunkumarch3

You can use afterRenderer hook to get the information about the value, and row and column indexes:

https://jsfiddle.net/aszymanski/j3vamftq/7/

Hi ,
Thanks for ur reply ,

Actually I need cursor position (index ) inside selected cell …

Ex : Inside one cell , Data : TEST , I need position of E .

Hi @tarunkumarch3

Ok, I understand. So for getting the indexes after selecting the cell you can use afterSelection hook. Here’s an example:

https://jsfiddle.net/aszymanski/j3vamftq/12/

Thanks