0.0.14 • Published 2 months ago

ngx-universal-dropdown v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Angular Universal Dropdown

Suported Angular versions: 16 and 17.

Usage

Add the package as a dependency to your project using:

npm install ngx-universal-dropdown
# or
pnpm install ngx-universal-dropdown
# or
yarn add ngx-universal-dropdown

Add module to you app.module imports:

import { NgxUniversalDropdownModule } from 'ngx-universal-dropdown';
...
@NgModule({
    imports: [ NgxUniversalDropdownModule ],
    ...
})

Add dropdown component to your template:

<ngx-universal-dropdown
    (onMultiSelectEvent)="onMultiSelectEvent($event)" // active when multiSelect is true
    (onSingleSelectEvent)="onSingleSelectEvent($event)" // active when multiSelect is false
    [disabled]="false" // disable dropdown
    [multiSelect]="true" // when true dropdown is multi-select, otherwise is single-select (default value: false)
    [onHover]="true" // when true dropdown is opening on hover, otherwise on click (default value: false)
    icon="../assets/icon.svg" // add icon to the left side of the button - optional
    [options]="['First', 'Second', 'Third', 'Fourth']"
    [values]="[1, 2, 3, 4]"
    >
    Dropdown
</ngx-universal-dropdown>
0.0.14

2 months ago

0.0.10

5 months ago

0.0.11

5 months ago

0.0.12

5 months ago

0.0.13

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.0-watch

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago