Sending actions from the selectedItemComponent
See original GitHub issueThis is a feature request, but it needs some fleshing out.
I want to be able to interact with the selectedItem in a multiple-select. My particular case needs to allow the user to click/touch the selected items to do “things”.
Using selectedItemComponent
makes this easy, however I want to trigger actions from the component and bubble them up.
Should there be a way to pass actions closures into the selectedItemComponent? Or is the right way to do this using Evented
or a Service?
Issue Analytics
- State:
- Created 8 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Sending Actions from Components to Your Application
Luckily, components have a sendAction() method that allows them to send actions specified when the component is used in a template. Sending a...
Read more >Sending action from component to route in ember.js
This action helper will point to an action of your controller, in your component you can call this.attrs.closeModal() or this.get('closeModal')() ...
Read more >Launch a Flyout from an Action on a FlexCard - Salesforce Help
From the FlexCard Designer, drag an Action element into a state. Select ... Click into the Flyout field and select a component to...
Read more >Data down actions up | Component side effects - EmberMap
When a component's side effects will change from one use case to the next, those side effects should be handled using "actions up"...
Read more >How To Manage State in React with Redux - DigitalOcean
To access items in your Redux store, use a Hook called useSelector ... Your components will send the actions they want your store...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yup, thanks for the support @cibernox.
For those that land here eventually, here is how I was able to interact with my selectedItemComponent without having to extend the trigger. In my case “interact” meant handling click events on the selected items.
Then in selected-item.js
Contextual components are ideal for this.