Releases: an23lm/Table-Moderno
Releases · an23lm/Table-Moderno
v1.6.14
v1.6.13
v1.6.10
v1.6.6
v1.6.5
v1.6.4
v.1.6.3
v1.6.2
v1.6.1
v1.5.0
The new big feature in v1.5.0 is drum roll please lazy loading!
- Two new
config
keys added -- lazyLoad (Boolean) [ default: false ] - Enable or disable lazy loading.
- lazyLoadTrigger (Number) [ default: 75 ] - The percentage at which the callback is triggered to add new data.
registerLazyLoadTriggerCallback(callback)
callback: function - The callback function is invoked when thelazyLoadTrigger
threshold is reached. The callback function is invoked with one parameter -callback(this.scrollDoneLoad.bind(this))
, which is also a callback. This parameter function should be invoked when the new data is done loading and is inserted into the table. Optionally,scrollDoneLoad
can be directly called on the table object.scrollDoneLoad
- Function is used to indicate that a new set of data from a lazy load is inserted. It is crucial to call this function after lazy loading is done for the operation of lazy load trigger callback.