jQuery MiniUI
标题:
tooltip能否提示grid的标题
[打印本页]
作者:
lsyyxcn
时间:
2014-2-12 15:39:15
标题:
tooltip能否提示grid的标题
grid的表头能否用 tooltip显示出来?
即鼠标放到列的名称上,显示提示信息。
作者:
lost
时间:
2014-2-12 16:44:15
本帖最后由 lost 于 2014-2-12 16:45 编辑
var tip = new mini.ToolTip();
tip.set({
target: document,
selector: '.mini-grid-headerCell-inner',
onbeforeopen: function (e) {
e.cancel = false;
},
onopen: function (e) {
var text = e.element.innerHTML;
tip.setContent(text);
}
}); 试试把这段代码写入js
复制代码
作者:
lsyyxcn
时间:
2014-2-12 16:54:02
lost 发表于 2014-2-12 16:44
谢谢 lost的回答,
如果浏览器是
兼容模式
的情况下,页面布局就乱了。grid不显示了,
麻烦你测试下。
浏览器是ie11,
作者:
lost
时间:
2014-2-12 16:59:03
lsyyxcn 发表于 2014-2-12 16:54
谢谢 lost的回答,
如果浏览器是兼容模式的情况下,页面布局就乱了。grid不显示了,
MiniUI控件只支持IE的标准模式,兼容模式是不支持的。
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2