Angular Component To Filter Contents In An Alphabetical List | AlphabetFilter

Angular 10+ component to filter contents in an alphabetical list, using default or custom templates. Perfect for building contact lists.

Compatible with earlier versions of Angular, except for AngularJS.

filter array by first letter javascript, alphabet filter angular, filter startswith javascript, alphabetical filter jquery, javascript filter by name, filter some javascript

jQuery Plugin for a Filterable Multi Selection Bootstrap Dropdown

How to make use of it:

Install

npm install alphabet-filter

Import into Module

import { AlphabetFilterModule } from 'alphabet-filter';

@NgModule({
  imports: [
    ...,
    AlphabetFilterModule
  ],
  declarations: [...],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Insert into styles of angular.json

...
"styles": [
  "...",
  "node_modules/alphabet-filter/alphabet-filter.scss"
],
...

API

Inputs/Outputs (Required)

NameTypeDescription
dataany[]Data to be listed.(ex .: <... [data]="contacts"></...>).
propAlphaOrderstringProperty for name of the property to be ordered alphabetically.(ex .: <... propAlphaOrder="name"></...>).
propsSearchstring or string[]Property(ies) to be filtered.(ex .: <... [propsSearch]="['name']"></...>).
onClickEventEmitter<any>Emit on item click.(ex .: <... (onClick)="selected($event)"></...>).

Inputs/Outputs (Optional)

NameTypeDescription
placeholderstringPlaceholder of input filter. (ex .: <... []=""></...>).
listClassstringClass name for list element. (ex .: <... listClass="search-list"></...>).
heightstringHeight to be used throughout the component. (ex .: <... height="100%"></...>).
withTemplatebooleanUsed when to need of customize using ng-template. (ex .: <... [withTemplate]="true"></...>).
onCancelEventEmitter<any>Used to enable “close” button.(ex .: <... (onCancel)="cancel()"></...>).

Alphabet Filter Component, AlphabetFilter Plugin/Github


See Demo And Download

Official Website(ericferreira1992): Click Here

This superior jQuery/javascript plugin is developed by ericferreira1992. For extra Advanced Usages, please go to the official website.

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

Star-Rating-JavaScript

Select Box Based Star Rating JavaScript Library | star-rating.js

star-rating.js is a small JavaScript library to create a customizable and gradually improved star rating control from a regular tick box with numeric values. The ES6 module…

Bootstrap-Show-Notification

Corner Fixed Notifications Alerts With Bootstrap | BS4 Show Notification

Bootstrap Notification is an easy-to-use jQuery plugin that uses the Bootstrap Alerts component to create static, rejectable, and stackable notification popups in the upper right corner of the…

Stackable-Multi-level-Sidebar-Menu

Create Stackable Multi-level Sidebar Menu | HC Off-canvas Nav

Multi-Level Sidebar Slide Menu – HC MobileNav is a jQuery plugin for creating multi-level, mobile-first, totally accessible, off-canvas facet navigation that helps the infinite nesting of submenu…

vue-masonry-gallery

Responsive Masonry Layout with SSR Support for Vue 3 | vue-masonry-wall

Vue masonry wall is a responsive masonry layout component for Vue 3 to deliver a Masonry-style responsive grid layout with SSR and RTL layout support. Features 📱…

bootstrap-5-bs-toaster

A Bootstrap 5 Toast Notification Framework Library | bs-toaster

bs-toaster is simple to instantiate bs-toaster and create multiple toasts effortlessly using native Bootstrap 5! Feature Facts Small and clean Modern browser support. No IE sorry 💥…