shr-dropdown v0.0.6
Usage
npm install shr-dropdown
it will install shr-dropdown and shr-multi-dropdown with library and this library will support angular 2 to 9 version without any issue
Implimentation
Add <lib-shr-multi-dropdown [optionMultiList]="optionList" (getSelectedList)='selectedChoice($event)'></lib-shr-multi-dropdown>
include in the component where you are using for multidropdown with search.
Add <lib-shr-dropdown [optionList]="optionList" (onComplete)='selectedChoice($event)'></lib-shr-dropdown>
include in the component where you are using without search.
optionList is the array of object with id,label,checked keys
Note: Don't forget to add
ShrDropdownModule
in themodule you are going to use for example home.module.ts
or else it will be added to the default moduleapp.module.ts
file.
CallBack for Selected Object
You can add your component method to get call back from the library with (onComplete) OR getSelectedList for multidropdown with search
emitter.
Note
As of now still it is first version we will improve based on best practise.
Simplicity
It doesn't required any library to use and css also we left to you to write