xeople-dropdown
v1.0.0
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0.
Downloads
4
Readme
XeopleDropdown
This library was generated with Angular CLI version 11.0.0.
Getting Started
Run ng generate component component-name --project xeople-dropdown to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project xeople-dropdown.
Note: Don't forget to add
--project xeople-dropdownor else it will be added to the default project in yourangular.jsonfile.
npm i xeople-dropdown
import { XeopleDropdownModule } from 'xeople-dropdown';
<lib-xeople-drp [configuration]="common_DropdownC_Config" (selectedOut)="getOrgData($event)" [getSelectedItem]="selectedOrgName"> </lib-xeople-drp >
public common_DropdownC_Config:DRP_CONFIG; public selectedOrgName: any = {};
` this.common_DropdownC_Config = { API: '', MANAGE: '', BINDBY: 'title', REQUIRED: true, DISABLED: false, PLACEHOLDER: 'Please select', SHORTNAME_SHOW: false, SINGLE_SELECETION: true, AT_LEAST_ONE_IS_NOT_REMOVABLE: false, IMG_SHOW: false, EXTRA_BIND_VALUE: '', IMG_BIND_VALUE:'ProfileImage' }
getOrgData(data){
console.log(data);} `
IMPORT URL FROM XEOPLE-DROPDOWN
Import it in your app module file
import { XeopleDropdownModule } from 'xeople-dropdown';
Run ng build xeople-dropdown to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build xeople-dropdown, go to the dist folder cd dist/xeople-dropdown and run npm publish.
Running unit tests
Run ng test xeople-dropdown to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
