import { DROPDOWN_DIRECTIVES } from 'angularx-semantic-ui'
<lsu-dropdown [(ngModel)]="selectedItem" [data]="data" (change)="onChange($event)"></lsu-dropdown>
<lsu-dropdown [(ngModel)]="selectedItem" [data]="data" [textField]="fieldForShow"></lsu-dropdown>
<lsu-dropdown [(ngModel)]="selectedItem" [data]="data" [textField]="fieldForShow" [placeHolder]="'select items'" [multiple]="'true'"></lsu-dropdown>
- data: Required. Array<any>,When the array is stored
object
, you need to specify thetextField
- textField: Optional,Specify which properties are used to display in the page
- placeHolder: Optional
- multiple: Optional,Default is false
- change: Optional, when data changed whill fire this event