SlickGrid:如何查看长单元格条目的全文? [英] SlickGrid: how to view full text for long cell entries?

查看:129
本文介绍了SlickGrid:如何查看长单元格条目的全文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SlickGrid数据表和一些我的单元格有很长的文本条目(1000个字符或更多)。

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

默认情况下,SlickGrid只显示部分文本,并使用省略号缩写其余部分。

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.

这是否可以使用SlickGrid,如果是这样的话?

Is this possible with SlickGrid, and if so how?

推荐答案

只需使用此插件:

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

像这样注册,你就是完成!

Register it like this and you are done!

mygrid.registerPlugin(new Slick.AutoTooltips());

这篇关于SlickGrid:如何查看长单元格条目的全文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆