Long time no post, but I ran into a seemingly simple UI pattern that I wasn’t sure how to implement using Ember and wanted to get some second opinions before moving forward.
We have a fairly standard list view; a parent component that renders a bunch of list items. Each list item can toggle a “detail view” that shows or hides more information. To make our users happy, the parent component will have the ability to toggle all list items at once.
How should I set this up? Is there a good pattern within the Ember community to do this?
My first instinct is to keep track of the open/closed states within some kind of array in the parent component, but I think I would prefer if the list items themselves were responsible for tracking their own state.