暂时没有好的中文资料,大概找了三遍随便看看,之后重点研究其github
1.Handsontable 学习笔记-Methods
2. Handsontable通用方法
3.handsontable的核心方法
4.Handsontable 筛选事件
官方文档再读记录:
2017.09.14读完 Getting started和 Basic usage
2017.09.15读完Developer guide 和 Community
2017.09.17读完API Reference
之后不再看API Reference了,效率很慢,把Demo和下载下的例子多敲几遍,多改一下,在这个过程中熟悉API
If you are writing an advanced cell renderer and you want to add some custom behavior after a certain user action (i.e. after user hover a mouse pointer over a cell) you might be tempted to add an event listener directly to table cell node passed as an argument to the renderer function. Unfortunately, this will almost always cause you trouble and you will end up with either performance issues or having the listeners attached to the wrong cell.
This is because Handsontable:
calls renderer functions multiple times per cell - this can lead to having multiple copies of the same event listener attached to a cell
reuses table cell nodes during table scrolling and adding/removing new rows/columns - this can lead to having event listeners attached to the wrong cell
Before deciding to attach an event listener in cell renderer make sure, that there is no Handsontable event that suits your needs. Using Handsontable events system is the safest way to respond to user actions.
In order for the data separation to work properly, make sure that each instance of Handsontable has a unique id
.
--天空突如其来下起雨来,告知夏天已经结束