Possibility to target a composant instance by its id when emitting an event #2864
Unanswered
pink6440
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was wondering it there was a specific reason to not be able to target a specific composant instance when emitting an event.
why does i need this ?
Targetting a component by its name made all instances be notified of an event ;
Sometimes, i just want to notify the first parent or a specific component instance (when many component of same class are present in the page).
Also, it can avoid many unneccessary XHR requests when an event is emitted.
I had modify the live_controller.js to handle the case of the component name parameter is looking like #componentId but i was wondering if there was a specific reason to not have this feature from the start.
Beta Was this translation helpful? Give feedback.
All reactions