Socket
Socket
Sign inDemoInstall

k-lab

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    k-lab

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


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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);
}

Keywords

FAQs

Last updated on 02 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc