Jay
Jay
I was also looking for this feature when testing this application. What is needed is simply a --max_pairs=10 option In this case it will only accumulate up to 10 pairs...
I just happened to write an extension today that can do this using YAML and I call the new attribute hx-class https://github.com/jay23606/minimal-htmx/blob/main/hx-class.js https://github.com/jay23606/minimal-htmx/blob/main/ex3.html https://raw.githack.com/jay23606/minimal-htmx/master/ex3.html I used YAML because I thought...
I just added it as an extension because I assumed it might not be so useful in all situations. Feel free to use it and change it to suit your...
@khalilghenimi thanks for your feedback. I added hx-class to my own version of htmx and also added a my own custom YAML parser so that there are no external dependencies....
```js function removeRequestIndicators(indicators, disabled) { forEach(indicators, function (ic) { var internalData = getInternalData(ic); internalData.requestCount = (internalData.requestCount || 0) - 1; if (internalData.requestCount === 0 || ic.getAttribute("hx-disabled-elt") === 'this') { //htmx.js...