0.0.4 • Published 6 years ago
angular-searchable-list v0.0.4
Angular Searchable List
This library was generated with Angular CLI version 9.0.7.
Dependencies
- Angular Material 9
Installation
npm install angular-searchable-list
Description
Single List
These are the array of strings or numbers
Multi List
These are the array of objects of following type
[
{
name: 'one',
value: '1'
},
{
name: 'two',
value: '2'
}
]How to use
Single List
<lib-searchable-list type='action' [data]="data" listType='single' [dense]="'dense'" [hoverable]="true" height='100px'></lib-searchable-list>Multi List
<lib-searchable-list type='action' [data]="data" listType='multi' [dense]="'dense'" [hoverable]="true"></lib-searchable-list>Parameters
- type : It can be
normaloractionwhich provides hovering capability on list items - data : It can be array of
numbers,stringsforlistType: 'single'or array ofobjectsforlistType: 'multi - listType : It can be
singleormulti - dense (optional) : It controls the height and padding of the list
dense='dense' - hoverable (optional) : It can be true or false
[hoverable]=true/false - height (oprtional) : It controls the height of the list
Bugs
If you counter any bugs then open a bug https://github.com/diveshpanwar/angular-searchable-list/issues(OPEN ISSUE)