htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Added reinit method to public API

Open rudiv opened this issue 3 years ago • 0 comments

In reference to #425 (and subsequent PRs #943) this adds a reinit method to clean up elements and then reprocess.

cleanUpElement was extended to have a parameter that resets the initialized flag too (to allow initNode to reactivate).

Documentation updated with an Alpine sample that would reinitialise when a hx-get has changed on an element.

rudiv avatar Jul 23 '22 16:07 rudiv