jQuery MiniUI

标题: datagrid能不能设置提示框 [打印本页]

作者: asd1122    时间: 2016-4-5 16:07:29     标题: datagrid能不能设置提示框

本帖最后由 asd1122 于 2016-4-5 16:10 编辑

    想问问,启用单元格编辑后,单元格上能不能设置提示框(不是表头提示),就是当鼠标移动到单元格上时提示输入格式的这种。我在editor上加上tooltip没有什么用。


作者: dforce    时间: 2016-4-5 16:21:38

编辑器上设置tooltip="..."
鼠标移动上去会有提示
作者: asd1122    时间: 2016-4-5 16:27:22

dforce 发表于 2016-4-5 16:21
编辑器上设置tooltip="..."
鼠标移动上去会有提示

我在editor这么加:editor:{name:"xxxx", cls:"mini-textbox", type:"textbox", style:";width:100%", emptyText:"", allowInput:"true", tooltip:"xxxxx", maxLength:"50"},但是没有看到提示,是哪里错了嘛。我用update方法更新列的属性以及editor,会有影响吗?
作者: asd1122    时间: 2016-4-5 16:30:56

dforce 发表于 2016-4-5 16:21
编辑器上设置tooltip="..."
鼠标移动上去会有提示

好吧,我发现了,需要点击进入编辑,才有提示,我理解错了
作者: asd1122    时间: 2016-4-5 16:37:21

dforce 发表于 2016-4-5 16:21
编辑器上设置tooltip="..."
鼠标移动上去会有提示

在编辑器上设置tooltip需要点击,触发编辑器后才可以有显示。但是不点击进入编辑,只移动鼠标到单元格上,能不能有tooltip?
作者: dforce    时间: 2016-4-5 16:43:59

asd1122 发表于 2016-4-5 16:37
在编辑器上设置tooltip需要点击,触发编辑器后才可以有显示。但是不点击进入编辑,只移动鼠标到单元格上 ...

不能
作者: asd1122    时间: 2016-4-5 16:45:28

dforce 发表于 2016-4-5 16:43
不能

好吧,谢谢了




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2