We love choice

Fx{r} is trying to start the Fx{r} Community! Please join our group on Adobe Groups following this link: http://fxr.groups.adobe.com.
Fx{r} is now on Twitter too. Follow us @ twitter.com/fx_r!
«
»

Components

Multiple selection list component

Stelian Crisan | 20.09.09 | 7 Comments

Google Buzz

This component was created in order to improve user experience when the user must select multiple options from a long list of items. As you already know, if you select more items from a list component you have to scroll in order to see what it’s you actual selection.

So, what you do if you have a list that has, let say, 100 items and you make a selection of 4 elements, as an user it’s hard to know what are the selected items, also if you come back to this and you want to add one more element to you selection?

Multiple selection list component give the user a visual status of the actual selection. On the left side are available items and on the right selected items.

Accesibility

1. Double click on in item to move it from a list to on other.
2. Select one or more elements from a list and click on the arrow between the list in order to move all selected items from one list to other one,
3. Move all elements from a list to other using double arrow icons.
4. Click on switch button (middle one) in order to switch items from a list to other.

How to use it

All you need to do it’s to tell the component what are all available items and what are the selected items.

private var myComp: MultiSelectList = new MultiSelectList();
private var _availableItems: ArrayCollection = new ArrayCollection();
private var _selectedItems: ArrayCollection = new ArrayCollection();
private var _resultItems: ArrayCollection = new ArrayCollection();
 
//set component data
myComp.availableItems = _availableItems;
myComp.selectedItems = _selectedItems;
 
//get selected items
_resultItems = myComp.selectedItems;

As you will see in this working example, I use this component to update a ComboBox according to selection from multiple selection list component.

Enjoy!

Share and Enjoy:
  • Twitter
  • Google Buzz
  • LinkedIn
  • Google Bookmarks
  • del.icio.us
  • Digg
  • Sphinn
  • blogmarks
  • Reddit
  • StumbleUpon
  • Facebook
  • DZone
  • FriendFeed
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • Slashdot
  • MySpace
  • Add to favorites
FxrMultiSelectList
MultiSelectList




Tags: , , ,

This post was written by Stelian Crisan

Views: 9222

related

7 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

:

:


«
»