Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

ion-alpha-scroll

> 编程语言
Open source

Alphabetically indexed list with alpha scroll bar.

99 stars0 likes1 views
WebsiteGitHub

About

Alphabetically indexed list with alpha scroll bar.

ion-alpha-scroll

Configurable Ionic directive for alphabetically indexed list with an alpha scroll bar.

#Table of contents

  • Demo
  • Installation
  • Usage
  • Acknowledgements
  • License

Demo

Installation

  1. Use bower to install the new module:
bash
bower install ion-alpha-scroll --save
  1. Import the ion-alpha-scroll javascript and css file into your HTML file:
xml
  1. Add ion-alpha-scroll as a dependency on your Ionic app:
javascript
angular.module('myApp', [
  'ionic',
  'ion-alpha-scroll'
]);

Usage

To use the ion-alpha-scroll directive simply add the following snippet to your template:

xml

  Content Goes here...

where 'ng-model' is the model you would like to sort and 'key' is the name of the key you would like to sort by.

The 'subheader' attribute is optional, to be set if using a subheader in the view to allow proper scroll height.

To display the properties of each item in the model, you can use the 'item' object within the directive:

xml
	
	  

	  

	

Heres a quick example:

services.js

…

controllers.js

javascript
angular.module('example.controllers', [])

.controller('contactsCtrl', ['$scope','Contacts',function($scope, Contacts) {
 
	$scope.contacts = Contacts.all();

)]};

contacts-list.html

xml

  
    
      

      

    
  

Acknowledgements

Initial inspiration and code taken from this codepen by mikelucid

License

The Ionic alpha-scroll directive is available under the MIT license.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言