NeXTs / Clusterize.js

Tiny vanilla JS plugin to display large data sets easily
https://clusterize.js.org
MIT License
7.22k stars 412 forks source link

Added persistence module for non-static elements #179

Closed marcusparsons closed 4 years ago

marcusparsons commented 4 years ago

Added persistence options which will mutate the DOM if the clustered table has any rows that have an input or textarea element since these elements will not be persisted by default. Runs a quick DOM mutation, when running, on the currently rendered rows and then updates those indices within the clusterized data. The persistence module will not run if there are no input or textarea elements detected in the markup, but it will check again on a Clusterize update to see if any new elements contain an input or textarea and restart the DOM mutation. Very beneficial for volatile elements embedded in a table.

marcusparsons commented 4 years ago

I missed adding checks to the other DOM functions.