Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SlickGrid: how to view full text for long cell entries?

I'm using a SlickGrid data table and some of my cells have very long text entries (1000 characters or more).

By default, SlickGrid only shows some of the text, and abbreviates the rest using an ellipsis.

This works well, except that I'd like to show the full text on mouseover, or have some other way to expand the cell to show the full entry.

Is this possible with SlickGrid, and if so how?

like image 421
flossfan Avatar asked Jul 16 '12 11:07

flossfan


1 Answers

Just use this plugin:

https://github.com/mleibman/SlickGrid/blob/master/plugins/slick.autotooltips.js

Register it like this and you are done!

mygrid.registerPlugin(new Slick.AutoTooltips());
like image 67
Anand Avatar answered Oct 06 '22 00:10

Anand