A Dual List Box Component for Angular 2+ | ngx-dual-listbox

ngx-dual-listbox is a dual list box component for Angular 2+ applications.

angular material dual listbox, angular listbox example, custom dual list box, dual list box npm, dual multi-select angular

ngx-dual-listbox

How to use it:

Installation:

npm install --save ngx-dual-listbox

1. Then include in your app’s module:

import { NgModule } from '@angular/core';
import { NgxDualListboxModule } from 'ngx-dual-listbox';

@NgModule({
  imports: [
    NgxDualListboxModule.forRoot()
  ]
})
export class MyModule {}

2. Finally, use it in a component of your applications:

import { Component } from '@angular/core';

@Component({
  template: `
    <ngx-dual-listbox [items]="items" [(selectedItems)]="selectedItems">
    </ngx-dual-listbox>
  `
})
export class MyComponent {
  items: any[] = [
    { id: 1, name: 'Movie 1', url: '' },
    { id: 2, name: 'Movie 2', url: '' },
    { id: 3, name: 'Movie 3', url: '' },
    { id: 4, name: 'Movie 4', url: '' },
    { id: 5, name: 'Movie 5', url: '' }
  ];

  selectedItems: any[] = [{ id: 1, name: 'Movie 1', url: '' }];
}

dual list box component for angular, ngx-dual-listbox plugin/github


See Demo And Download

Developer Name: ouracademy

Official Website: Click Here

Share

You may also like...

Leave a Reply

Your email address will not be published.