Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JS] Trigger event on Add and Remove from collection (sugestion) #311

Closed
tlfbrito opened this issue Oct 14, 2014 · 5 comments
Closed

[JS] Trigger event on Add and Remove from collection (sugestion) #311

tlfbrito opened this issue Oct 14, 2014 · 5 comments
Milestone

Comments

@tlfbrito
Copy link
Contributor

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
Copy link

matheo commented Oct 14, 2014

+1 :)
and thanks too!

@florianeckerstorfer
Copy link
Member

👍

@florianeckerstorfer
Copy link
Member

This should be closed with #311

florianeckerstorfer pushed a commit that referenced this issue Nov 4, 2014
#311 Add JavaScript events for Add and Remove field in bc-collection
@sandello-alkr
Copy link
Contributor

@TiagoBrito can you provide an example?

@raoulclais
Copy link

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');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants