You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
It might be useful to do something when an attribute value changes.
However seems this is only possible by watching the entire DOM tree for changes, using a mutation observer.
And since we would have to watch for DOM changes anyway, we could also use this to detect whether elements are added or removed.
Perhaps this could be implemented like this:
A user can specify (in the "Events" and "JS" tabsheets) for which CSS selector the mutation event needs to be detected:
As soon as minimum 1 of such events is used, the client side will add a mutation observer.
When the mutation observer callback is triggered, when can determine whether the target element matches the CSS selector (e.v. via this mechanism on Stackoverflow)
When a match has been found, the specified event handler will be executed.
The text was updated successfully, but these errors were encountered:
It might be useful to do something when an attribute value changes.
However seems this is only possible by watching the entire DOM tree for changes, using a mutation observer.
And since we would have to watch for DOM changes anyway, we could also use this to detect whether elements are added or removed.
Perhaps this could be implemented like this:
A user can specify (in the "Events" and "JS" tabsheets) for which CSS selector the mutation event needs to be detected:
As soon as minimum 1 of such events is used, the client side will add a mutation observer.
When the mutation observer callback is triggered, when can determine whether the target element matches the CSS selector (e.v. via this mechanism on Stackoverflow)
When a match has been found, the specified event handler will be executed.
The text was updated successfully, but these errors were encountered: