[JS] Trigger event on Add and Remove from collection (sugestion)
tlfbrito opened this issue · 5 comments
tlfbrito commented
This there a way to catch add/remove events from bc-bootstrap-collection ? If not, shouldn't we fire event to allow people subscribe them?
Thanks for this bundle and your work.
matheo commented
+1 :)
and thanks too!
florianeckerstorfer commented
👍
florianeckerstorfer commented
This should be closed with #311
sandello-alkr commented
@TiagoBrito can you provide an example?
raoulclais commented
Is it possible to fire an event right after the collection has been updated ?
Something like this ?
$this.trigger('bc-collection-field-before-remove');
var listElement = $this.closest('li').remove();
$this.trigger('bc-collection-field-after-remove');