Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

What's the best way to handle bulk actions of list items?

$
0
0

@Emerson wrote:

Howdy,

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.

mockup

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.

Posts: 9

Participants: 6

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles