找回密码
 立即注册

QQ登录

只需一步,快速开始

AlexZ 讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2020-9-25 14:16  /   查看:2495  /  回复:0
在 SpreadJS V14 新版本中,将允许用户对批注标识进行自定义,效果如下:

# 改变颜色
  1. sheet.comments.add(5, 5, 'new comment!');
  2. sheet.comments.get(5, 5).indicatorColor('blue');
复制代码

image.png757575683.png


#改变大小
  1. sheet.comments.add(5, 5, 'new comment!');
  2. sheet.comments.get(5, 5).indicatorColor('blue');
  3. sheet.comments.get(5, 5).indicatorSize(20);
复制代码


image.png432520446.png

  • indicatorSize : number && > 1
  • indicatorColor: string (if a illegal color, indicator color will be set to #000000, but return the illegal value)
    • you can set color like these strings:
      • 'blue'
      • '#000000'
      • 'rgba(255, 255, 0, 0.5)'

0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部