How to listen for repeater delete item action
I want to catch when one of repeater items is deleted in custom javascript file. Is there event dispatched ?
Solution:Jump to solution
No, I don't think so. You could overwrite the
DeleteAction on the repeater and fire an event.4 Replies
Solution
No, I don't think so. You could overwrite the
DeleteAction on the repeater and fire an event.Thank you @Dennis Koch So here is the solution:
I have one more so to say problem.
Now in the front-end I should push the code in the call stack because the event is fired before the UI is updated and my JS calculations rely on the ui.
Is there any smarter solution?
You can use
$get method inside components do stuff based on inputs. Probably the cleaner way.
https://filamentphp.com/docs/4.x/schemas/primes#using-javascript-to-determine-the-content-of-the-textThank you