# Alphabet scroll and fast scroll

**URL:** <https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623>\
**Category:** ionic-v3\
**Created:** [April 28, 2016, 7:11am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623 "2016-04-28T07:11:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanlogsdon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ryanlogsdon/32/103208_2.png) [@ryanlogsdon](https://forum.ionicframework.com/u/ryanlogsdon)\
**Post date:** [April 28, 2016, 7:11am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/1 "2016-04-28T07:11:47Z")

</div>

Hi,

Does anyone know how to implement iOS’s vertical alphabet scroll or Android’s fast scroll?

I’m working with a list of about 1,500 elements, so infinite scroll is great, but indexed jumping points will be crucial.

Thanks,  
Ryan

---

<div class="post-metadata">

**Author:** ![bendiet](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bendiet/32/101297_2.png) [@bendiet](https://forum.ionicframework.com/u/bendiet)\
**Post date:** [June 24, 2016, 7:16am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/2 "2016-06-24T07:16:12Z")

</div>

I’m interested in such a feature, too.

---

<div class="post-metadata">

**Author:** ![Yimiprod](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yimiprod/32/101546_2.png) [@Yimiprod](https://forum.ionicframework.com/u/Yimiprod)\
**Post date:** [July 28, 2016, 10:24am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/3 "2016-07-28T10:24:26Z")

</div>

Same for me, I’ll use a feature like this

---

<div class="post-metadata">

**Author:** ![vaibhav\_bista](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav\_bista](https://forum.ionicframework.com/u/vaibhav_bista)\
**Post date:** [July 28, 2016, 1:13pm UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/4 "2016-07-28T13:13:58Z")

</div>

I’m not very sure, particularly what you want… But as per my guess try the following link… this might help you.

Check for `contacts.ts` page at the end of this article where Alphabetical List is implemented…

> [An Introduction to Lists in Ionic 2 & 3 | Josh Morony](https://www.joshmorony.com/an-introduction-to-lists-in-ionic-2/)

---

<div class="post-metadata">

**Author:** ![ryanlogsdon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ryanlogsdon/32/103208_2.png) [@ryanlogsdon](https://forum.ionicframework.com/u/ryanlogsdon)\
**Post date:** [July 28, 2016, 10:51pm UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/5 "2016-07-28T22:51:51Z")

</div>

Hi @vaibhav_bista,

This is what an Alphabet Scroll is: [Stack Overflow](http://stackoverflow.com/questions/8192683/how-to-create-an-alphabetical-scrollbar-displaying-all-the-letter-in-android)

Notice the vertical alphabet on the right side of the screen.

The article you referenced uses alphabetic dividers … different topics.

---

<div class="post-metadata">

**Author:** ![vaibhav\_bista](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav\_bista](https://forum.ionicframework.com/u/vaibhav_bista)\
**Post date:** [July 29, 2016, 6:30am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/6 "2016-07-29T06:30:27Z")

</div>

Ohh… sory… I only considered as Alphabet scroll 😅 and posted divider scroll with alphabet… Thanks for pointing me in the right direction…😅

that’s why I said in earlier reply I didn’t get your point what I exactly you want…

Let us know if you find any helpful article or you find any solution on `Vertical Alphabet Scroll` like Native Android…

---

<div class="post-metadata">

**Author:** ![nmdia](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nmdia/32/98878_2.png) [@nmdia](https://forum.ionicframework.com/u/nmdia)\
**Post date:** [July 29, 2016, 7:27am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/7 "2016-07-29T07:27:57Z")

</div>

Hi everyone

Fast scroll is nothing but a div with letters positioned vertical. Every letter is `<a>` tag with href attribute which leads to particular segment of the page.

First of all, you need to have a list sorted and grouped alphabetically. This is managed by ionic item dividers and It is explained in this article at the bottom of the page: [https://www.joshmorony.com/an-introduction-to-lists-in-ionic-2/](https://www.joshmorony.com/an-introduction-to-lists-in-ionic-2/)

IMPORTANT: You need to have two dimensional array - array of groups (letters) and array of items inside every group.  
Array of groups has to be an associative array where letters represent indexes. This is important because you will be setting item divider `id` attributes by these indexes, so you could jump on it when you click on `<a>` tag in your fast scroll component.

`let myList = [a: [{id: 1, title: 'item1'}, {id: 2, title: 'item2'}] b: [{id: 3, title: 'item1'}, {id: 4, title: 'item2'}] ]`

Every item divider needs to have `id` attribute, which will be indexes of “myList” array. Fast scroll component will recieve a list of indexes (letters) to be rendered. You can render all letters from alphabet but I prefer only the ones you have inside your contact list.

Also you’ll need a special pipe to iterate through associative array in your template.

I created a gist file so you can take a look more closely: [https://gist.github.com/anteburazer/3e45d6e9ad99e70835eb29becedb0a2d](https://gist.github.com/anteburazer/3e45d6e9ad99e70835eb29becedb0a2d).  
Some of the code is pseudo code so you’ll need to adjust it to your needs. Also my algorythams maybe are not the best so I provided a link above (for list sorting and grouping) or investigate a little bit.

I hope this help. If something is not clear let me know.

---

<div class="post-metadata">

**Author:** ![teamcloud](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@teamcloud](https://forum.ionicframework.com/u/teamcloud)\
**Post date:** [May 12, 2018, 11:08am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/8 "2018-05-12T11:08:03Z")

</div>

May be that plugin could help you

> **[aquint/ion-alpha-scroll](https://github.com/aquint/ion-alpha-scroll)**
>
> ion-alpha-scroll - Alphabetically indexed list with alpha scroll bar.

---

<div class="post-metadata">

**Author:** ![gilbertlucas46](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gilbertlucas46/32/121388_2.png) [@gilbertlucas46](https://forum.ionicframework.com/u/gilbertlucas46)\
**Post date:** [September 15, 2018, 9:08am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/9 "2018-09-15T09:08:19Z")

</div>

Do you think you can crate some tutorial? here’s what I’m trying to achieve: [Ionic 3 Alpha Select](https://forum.ionicframework.com/t/ionic-3-alpha-select/141791)

---

<div class="post-metadata">

**Author:** ![gilbertlucas46](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gilbertlucas46/32/121388_2.png) [@gilbertlucas46](https://forum.ionicframework.com/u/gilbertlucas46)\
**Post date:** [September 15, 2018, 9:09am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/10 "2018-09-15T09:09:02Z")

</div>

Not working in ionic 4

---

<div class="post-metadata">

**Author:** ![ramkumar2595](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@ramkumar2595](https://forum.ionicframework.com/u/ramkumar2595)\
**Post date:** [November 16, 2018, 9:43am UTC](https://forum.ionicframework.com/t/alphabet-scroll-and-fast-scroll/50623/11 "2018-11-16T09:43:33Z")

</div>

Is possible to have Alphabet scroll with lazy loading? If possible How to Do it and are there any disadvantages regarding it?
