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
handSOntable之api详解
最新推荐文章于 2023-09-27 09:47:26 发布