Create README.md files
Create README File
Online Tool: https://www.makeareadme.com/
Dummy File.
# Cubex dropdown
Used to create Single / Multiselect dropdown.
## Installation
```bash
npm install --save cubex-multiselect-dropdown
```
## Usage
```ts
import { MultiselectDropdownModule } from 'cubex-multiselect-dropdown';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
MultiselectDropdownModule, ########'Cubex Dropdown'
],
providers: [],
bootstrap: [AppComponent]
})
```
## HTML file
```html
[selectionWidth]="11"
[width]="111"
[height]="200"
[isOpen]="false"
[data]='[
{ "name": "Option1", value:"Option1" },
{ "name": "Option2", value:"Option2" },
{ "name": "Option3","value":"Option3" }]'
[displayKey]="'name'"
[toggleKey]="'value'"
(onChange)="multiselectOnchage($event)"
[label]="'Entities'"
[placeholder]="'Select an option'"
>
////////////////////////////////////////////////////////////////
[selectionWidth]="11"
[width]="111"
[height]="200"
[isOpen]="false"
[data]='[
{ "name": "Option1", value:"Option1" },
{ "name": "Option2", value:"Option2" },
{ "name": "Option3","value":"Option3" }]'
[displayKey]="'name'"
[toggleKey]="'value'"
(onChange)="singleselectOnchage($event)"
[label]="'Entities'"
[placeholder]="'Select an option'"
>
```
## TS file
```ts
/**
* singleselectOnchage
* $event will return selected data []
*/
singleselectOnchage($event){
console.log($event);
}
/**
* multiselectOnchage
* $event will return selected data []
*/
multiselectOnchage($event){
console.log($event);
}
```
## Contributing
Cubex Dropdown is developed by a team of Cerulean developers in India. If any feedback or bugs please contact [rameshirreplaceable@gmail.com]()
Please make sure to update tests as appropriate.
## License
[MIT](http://www.ceruleaninfotech.com/)
## Author
[Ramesh M]() (Developer)
Comments
Post a Comment