- Search available.
npm install ngx-sand-simpleselect
import { SandSimpleSelectModule } from 'sand-simple-select'
@NgModule({
imports: [
...,
SandSimpleSelectModule
],
...
})
class YourModule { ... }
- Use
<ngx-sand-simpleselect></ngx-sand-simpleselect>
in your templates to add the default dropdown in your view like below
<sand-simple-select
[dropdowndata]="dropdowndata"
[disabledropdwon]="disabled"
[selectLabel]="selectLabel"
[noDataText]="noDataText"
(select)="onSelect($event)"
(search)="onSearch($event)"
(open)="open($event)"
(close)="close($event)">
</sand-simple-select>
Property | Purpose | Type | Default value | Mandatory |
---|---|---|---|---|
dropdowndata | The array to be passed on the component | array | ||
disabledropdwon | disable option for the component | |||
selectLabel | Initial label for the select | |||
select | The event once the value is selected from the dropdown | |||
search | The event once start searching on the input field | |||
open | The event once the dropdown is opened | |||
close | The event once the dropdown is closed |
Found a bug or an issue with this? Open a new issue here on GitHub.
Please check the Contributing Guidelines before contributing.
This project was generated with Angular CLI version 10.0.5.