找回密码
 立即注册

QQ登录

只需一步,快速开始

yupeng

注册会员

4

主题

91

帖子

149

积分

注册会员

积分
149

微信认证勋章

yupeng
注册会员   /  发表于:2018-9-15 12:11  /   查看:12393  /  回复:40
比如取(0,0)单元格的字段。目的是为了在移动端实现点击某单元格显示批注,批注的内容是动态的,是从后台接收过来的

40 个回复

倒序浏览
Clark.Pan讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-9-17 11:08:51
沙发
通过绑定cellclick事件,在事件中添加批注并显示
sheet.bind(GC.Spread.Sheets.Events.CellClick, function (sender, args) {
                        var row = args.row;
                        var col = args.col;
                        var comment = new GC.Spread.Sheets.Comments.Comment();
                        comment.text("new comment!");
                        comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
                        sheet.getCell(row,col).comment(comment);
                       
                });
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:17:58
板凳
回来看看
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:18:22
地板
流连忘返啊
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:18:32
5#
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:18:51
6#
给自己浇浇水
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:18:55
7#
给自己浇浇水
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:19:00
8#
给自己浇浇水
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:19:09
9#
给自己浇浇水
回复 使用道具 举报
yupeng
注册会员   /  发表于:2019-8-22 16:19:36
10#
给自己浇浇水
回复 使用道具 举报
12345下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部