0.0.4 • Published 3 years ago

kebs-select-search-d1 v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

kebs-select-search-d1

This library was generated with Angular CLI version 11.0.9.

Peer Dependencies

"@angular/common": "^11.0.9", "@angular/core": "^11.0.9", "@angular/animations": "~11.0.4", "@angular/cdk": "^11.2.3", "@angular/material": "~11.2.3", "ngx-mat-select-search": "^3.2.0", "@angular/platform-browser": "~11.0.4", "@angular/platform-browser-dynamic": "~11.0.4", "rxjs": "~6.6.0", "zone.js": "~0.10.2"

Usage

<kebs-select-search-d1
 label="search employee"
 placeholder="search Employee"
 [optionLabel] = "[{label:'Objective Name',api_obj_key:'displayName'},{label:'Owner',api_obj_key:'associate_id'}]"
 API_URL = "http://localhost***"
 (selectedValues) = "sampleFunc($event)"
 ></kebs-select-search-d1>

API_URL Structure

The Api should have a POST REQUEST with bodyParams { searchText:'xyz' }

Option Label

You can define your custom option label structue like this {label:'Objective Name',api_obj_key:'displayName'}, {label:'Owner',api_obj_key:'associate_id'}

api_obj_key is the key of the objects present in API response

events

(selectedValues) - emits the option object you have selected

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago