How to use jQuery plugins on each view item?
trusktr opened this issue · comments
What's the recommended way to use jQuery plugins on the items in the view?
I imagine you'd just call them in the generate function. A simple non-jquery example:
// ...
generate(index) {
const el = document.createElement("div");
el.textContent = "click me";
el.onclick = () => {
console.log("clicked");
};
return el;
}
Hope that helps!