How to enable text highlighting through mousedown/mousemove or double click for readOnly

Hi,

How do I get the capability to have default text highlight through mouse drag or double click of cell text when having readOnly mode? This is to provide expected experience for users who may expect default text highlight behavior.
Please advise. Thank you.

Hi @lancepan
To highlight a current cell you can overwite the .current className. Here’s an example: http://jsfiddle.net/8Lf2cdyh/

If you would like to tigger an action after a double-click you would need to create a custom function for the TD element. (Or as a little hacky workaround compare events’ timeStamp )

The only case I do not understand correctly (and would appreciate any details) is about the ‘default text’ that you’ve mentioned.