kebs-select-search-d1
v0.0.4
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.9.
Downloads
43
Readme
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