# @antin502/ng-multiselect

> `ng-multiselect` is available via [npm](https://www.npmjs.com/package/@antin502/ng-multiselect)

Latest version **1.1.0** (published 2020-09-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install @antin502/ng-multiselect
pnpm add @antin502/ng-multiselect
yarn add @antin502/ng-multiselect
bun add @antin502/ng-multiselect
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-09-27 |
| First published | 2020-09-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 181.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vladimir Antin |
| Maintainers | antin502 |
| Keywords | angular, angular 6, angular 7, angular 8, angular 9, angular 10, multiselect, module |

## Links

- npm: https://www.npmjs.com/package/@antin502/ng-multiselect
- Repository: https://github.com/vladimirantin/ng-multiselect
- Homepage: https://github.com/vladimirantin/ng-multiselect#readme
- Issues: https://github.com/vladimirantin/ng-multiselect/issues
- npm.io page: https://npm.io/package/@antin502/ng-multiselect

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0

## Recent versions

- 1.1.0 (latest) — 2020-09-27

## README

# Angular 9 Ng MultiSelect

## Installation

`ng-multiselect` is available via [npm](https://www.npmjs.com/package/@antin502/ng-multiselect)

Using npm:
```bash
$ npm install @antin502/ng-multiselect --save
```

- Import NgMultiSelect to your AppModule

``` js

import { AppComponent } from './app.component';
import {NgMultiselectModule} from '@antin502/ng-multiselect';

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

- Use it in your template

``` html
      <ng-multiselect [dataList]="list"
                      [compareWith]="compareWith"
                      [(selectedValues)]="selected"
                      [options]="{hide: {selectedItems: false, search: true, selectionAll: true}}"
                      [formatter]="formatter"
      select-all-text="" unselect-all-text="">
      </ng-multiselect>

```
``` ts
      ....
      list = [];
      selected = [{id: 1}];
      title = 'ng-multiselect';
    
      formatter = (i) => i.text;
      compareWith = (a) => a.id;
    
      ngOnInit(): void {
        for (let i = 0; i < 100; i++) {
          this.list.push({id: i, text: `id=${i}`});
        }
      }
    
    
      log(e) {
        console.log(e);
      }
      ....

```

## Demo

- [Working Demo](https://vladimirantin.github.io/projects/ng-multiselect)


## Creator

#### [Vladimir Antin](mailto:antin502@gmail.com)
- [@GitHub](https://github.com/vladimirantin)

---
_Source: https://npm.io/package/@antin502/ng-multiselect · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
