# I need a new Component! (Challenge?)

**URL:** <https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018>\
**Category:** ionic-v1\
**Created:** [May 30, 2014, 9:50pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018 "2014-05-30T21:50:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdedeh](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fdedeh](https://forum.ionicframework.com/u/fdedeh)\
**Post date:** [May 30, 2014, 9:50pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/1 "2014-05-30T21:50:42Z")

</div>

Hi all!..  
I’m needing a component like a horizontal picker. I drew a prototype to a better explain.

The component will be displayed like a list-item, with icons (or images), where the user will scroll the icons horizontally. When a item (icon) is selected, the item title (name) will be displayed:  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/861/07f920066071e9e5.jpg)  
Image 1 - The item “Social” is selected in the component

For a nice look and feel, when the user scroll the items in the component, It will have some transitions. The selected item will have the _opacity: 1_ and a big size in the center of the component. The other items will have a small size and some gradual transparency, while the item names will be sliding to the direction of the scroll. The effect is similar to the Apple Cover Flow:  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/862/1da7fdb5b8beebed.jpg)  
Image 2 - scrolling the items in the component

The user can scroll the items in the component to select an item:  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/863/5bf6f0c74c91ee9a.jpg)  
Image 3 - the new item “Games” is selected

I had some basic idea about the item parameters, like:

```
{
  itemIcon: '', // String. The icon of the horizontal picker item. Can be an url img
  itemTitle: '', // String. The title of the item, displayed below the icon when the item is selected.
  itemValue: '', // String. The value of the item.
  carousel: '', // Boolean. Indicates if the icons will spin like a carousel or will stop when come to the end.
}

```

The component will return the value of the item selected, like a select input.

I had tried to modify the slide-box component to work like my description, but without success.

Why I need all this?  
I had an idea for a very simple App, and I would like to build it in just one screen, without vertical scroll. A radio button will give the same result, but it will increase the screen vertically. With this new component the height is reduced, in addition to give a better look and feel.

If someone saw something like this, or accept the challenge to create something like this, please share with us!..

Thank you all!..

---

<div class="post-metadata">

**Author:** ![saniyusuf](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/saniyusuf/32/13572_2.png) [@saniyusuf](https://forum.ionicframework.com/u/saniyusuf)\
**Post date:** [June 1, 2014, 10:36am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/2 "2014-06-01T10:36:54Z")

</div>

Have you tried a tabbed approach in stead of slide box?

---

<div class="post-metadata">

**Author:** ![siddhartha](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@siddhartha](https://forum.ionicframework.com/u/siddhartha)\
**Post date:** [June 1, 2014, 12:24pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/3 "2014-06-01T12:24:43Z")

</div>

Ok. I will start writing a directive for this. Or at least I will try.

---

<div class="post-metadata">

**Author:** ![fdedeh](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fdedeh](https://forum.ionicframework.com/u/fdedeh)\
**Post date:** [June 1, 2014, 6:05pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/4 "2014-06-01T18:05:00Z")

</div>

@saniyusuf no, I had lost some time trying to modify only the slide-box.  
@siddhartha this is nice!.. thank you for your effort, any news give us a feedback …

thank you guys for your time!..

---

<div class="post-metadata">

**Author:** ![fdedeh](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fdedeh](https://forum.ionicframework.com/u/fdedeh)\
**Post date:** [June 21, 2014, 5:07pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/5 "2014-06-21T17:07:25Z")

</div>

nobody had success?.. 😕

---

<div class="post-metadata">

**Author:** ![vzhen](https://avatars.discourse-cdn.com/v4/letter/v/5f8ce5/32.png) [@vzhen](https://forum.ionicframework.com/u/vzhen)\
**Post date:** [June 26, 2014, 2:21am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/6 "2014-06-26T02:21:37Z")

</div>

i want this too…

---

<div class="post-metadata">

**Author:** ![siddhartha](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@siddhartha](https://forum.ionicframework.com/u/siddhartha)\
**Post date:** [July 2, 2014, 4:47am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/7 "2014-07-02T04:47:00Z")

</div>

A few more days. I am almost there.

---

<div class="post-metadata">

**Author:** ![ducdigital](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@ducdigital](https://forum.ionicframework.com/u/ducdigital)\
**Post date:** [July 9, 2014, 11:52am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/8 "2014-07-09T11:52:21Z")

</div>

Did you got it work?

---

<div class="post-metadata">

**Author:** ![fernmota](https://avatars.discourse-cdn.com/v4/letter/f/a698b9/32.png) [@fernmota](https://forum.ionicframework.com/u/fernmota)\
**Post date:** [July 9, 2014, 6:59pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/9 "2014-07-09T18:59:40Z")

</div>

Yes @siddhartha, did it work? I am looking for this exact thing, it is a very used pattern now

---

<div class="post-metadata">

**Author:** ![fdedeh](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fdedeh](https://forum.ionicframework.com/u/fdedeh)\
**Post date:** [July 25, 2014, 9:33pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/10 "2014-07-25T21:33:35Z")

</div>

someone have looked at this: [https://github.com/Rendez/st2-picker-pan](https://github.com/Rendez/st2-picker-pan)

is almost what we are looking for…

---

<div class="post-metadata">

**Author:** ![saravcts](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@saravcts](https://forum.ionicframework.com/u/saravcts)\
**Post date:** [July 27, 2014, 8:39am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/11 "2014-07-27T08:39:10Z")

</div>

Hi. Created a prototype using ionic slide box: [http://ionic-sarav.rhcloud.com/ionic/tabbedSlideBox/#/](http://ionic-sarav.rhcloud.com/ionic/tabbedSlideBox/#/)

Please check it out, I will create proper directives and more configurable component soon.

---

<div class="post-metadata">

**Author:** ![fdedeh](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fdedeh](https://forum.ionicframework.com/u/fdedeh)\
**Post date:** [July 27, 2014, 6:32pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/12 "2014-07-27T18:32:54Z")

</div>

hey @saravcts, it’s very nice! 😃

can you provide a download link of source code?..

---

<div class="post-metadata">

**Author:** ![saravcts](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@saravcts](https://forum.ionicframework.com/u/saravcts)\
**Post date:** [July 28, 2014, 6:31am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/13 "2014-07-28T06:31:56Z")

</div>

@fdedeh, here you go: [https://github.com/saravmajestic/ionic/tree/master/tabbedSlideBox](https://github.com/saravmajestic/ionic/tree/master/tabbedSlideBox)

---

<div class="post-metadata">

**Author:** ![fdedeh](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@fdedeh](https://forum.ionicframework.com/u/fdedeh)\
**Post date:** [July 28, 2014, 3:50pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/14 "2014-07-28T15:50:46Z")

</div>

Thanks very much! 😊

---

<div class="post-metadata">

**Author:** ![manu](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@manu](https://forum.ionicframework.com/u/manu)\
**Post date:** [July 29, 2014, 2:27pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/15 "2014-07-29T14:27:37Z")

</div>

that’s awesome, thanks!!  
I only noticed, that the icons are a bit off when I try it on my phone (Samsung Galaxy S3).  
Tried to fix it, but had no luck with the css classes…

do you know a quick fix for this? works fine for me with chrome on my desktop!  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/1314/3f9dcaa8135d1287.png)

---

<div class="post-metadata">

**Author:** ![saravcts](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@saravcts](https://forum.ionicframework.com/u/saravcts)\
**Post date:** [July 29, 2014, 11:40pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/16 "2014-07-29T23:40:45Z")

</div>

Glad you liked it, Which android version are you using? Currently I added CSS with only “-webkit” prefixes, that might be a reason.

---

<div class="post-metadata">

**Author:** ![manu](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@manu](https://forum.ionicframework.com/u/manu)\
**Post date:** [July 30, 2014, 3:05pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/17 "2014-07-30T15:05:25Z")

</div>

I’m using Android 4.3 - still couldn’t figure it out ☹

---

<div class="post-metadata">

**Author:** ![crissi](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@crissi](https://forum.ionicframework.com/u/crissi)\
**Post date:** [July 30, 2014, 11:03pm UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/18 "2014-07-30T23:03:55Z")

</div>

Awesome. Didn’t know I needed this plugin, but it fits perfectly for a use case I working with right now!

---

<div class="post-metadata">

**Author:** ![saravcts](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@saravcts](https://forum.ionicframework.com/u/saravcts)\
**Post date:** [July 31, 2014, 3:56am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/19 "2014-07-31T03:56:28Z")

</div>

@manu, fixed this issue now. Issue was with the way I calculated the middle position of the tab. Updated git: [https://github.com/saravmajestic/ionic/tree/master/tabbedSlideBox](https://github.com/saravmajestic/ionic/tree/master/tabbedSlideBox) and demo: [http://ionic-sarav.rhcloud.com/ionic/tabbedSlideBox/#/](http://ionic-sarav.rhcloud.com/ionic/tabbedSlideBox/#/)

---

<div class="post-metadata">

**Author:** ![crissi](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@crissi](https://forum.ionicframework.com/u/crissi)\
**Post date:** [July 31, 2014, 7:17am UTC](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018/20 "2014-07-31T07:17:17Z")

</div>

Would be awesome if it was possible to specify which tab was selected at the beginning and maybe easily control with an ng-model attribute.

[Next page](https://forum.ionicframework.com/t/i-need-a-new-component-challenge/5018.md?page=2)
