Skip to content

Latest commit

 

History

History

dropdown

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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