handSOntable之api详解

Options中的ht__active_highlight
在api中理解为选中的行的样式 可以通过自定义改写
tbody th.ht__active_highlight {
background-color: $clr4;
// border-top: 2px solid $clr4;
}
hooks.add和addhooks是不一样的、
一般是实例.hooks.add
比如
//渲染表格
Handsontable.hooks.add(“afterRenderer”, HST.afterRenderer, hot);
Handsontable.hooks.add(“afterRender”, HST.afterRender, hot);
//选中后事件 afterSelectionByProp选择就触发 afterSelectionEnd可以选择区域鼠标松开触发 afterSelectionEndByProp同afterSelectionEnd
Handsontable.hooks.add(“afterSelectionByProp”, HST.afterSelectionByProp, hot);
Handsontable.hooks.add(“afterSelectionEnd”, HST.afterSelectionEnd, hot);
Handsontable.hooks.add(“afterSelectionEndByProp”, HST.afterSelectionEndByProp, hot);
// 键盘事件
Handsontable.hooks.add(“beforeKeyDown”, HST.beforeKeyDown, hot);
Handsontable.hooks.add(“afterBeginEditing”, HST.afterBeginEditing, hot);
Handsontable.hooks.add(“beforeAutofi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值