k-lab
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

KLab

This library was generated with Angular CLI version 12.2.0.

K-Lab dropdown for without checkbox, with checkbox of single select and multi select. Implemented inbuilt search options.

Requirements

For development, you will only need Node.js installed in your environement.

Installation

npm intall k-lab

configuration

To load Modules in your environment,

    import { KLabModule } from 'k-lab'
    @NgModule({
        [...],
        imports: [KLabModule]
    })

Documentation

Step 1

<k-lab-dropdown [data]="data" (kDropdownEvent)="selectedValues($event)"></k-lab-dropdown>
  • Send data as Array (Required).
  • Event is any method (Required).

Data Config :

data: any = {
    list: ["anyName1", "anyName2"] | [{"name": "Doe"}],
    selectedValue: 'select value | any string',
    nameToBind: 'name | property to bind in the options',
    enableToCheckbox: 'default | single | multi',
    withSearchOf: true | default to false
};

Event :

Pass eventEmitter method to return selected options.

selectedValues(evt: any) {
    console.log('selected values', evt);
}

Package Sidebar

Install

npm i k-lab

Weekly Downloads

1

Version

0.0.5

License

none

Unpacked Size

88.4 kB

Total Files

18

Last publish

Collaborators

  • hariroy