Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 901 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 901 Bytes

Dropdown Usage

简体中文

  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>  

Options

  • data: Required. Array<any>,When the array is stored object, you need to specify the textField
  • 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