ng2-ui / auto-complete

Angular Auto Complete component and directive
http://ng2-ui.github.io/auto-complete/
MIT License
279 stars 124 forks source link

Callback when no-match-found-text #258

Closed pablogarciamiranda closed 7 years ago

pablogarciamiranda commented 7 years ago

Is there any callback that fires when there is a no match found?

I would like to create an item when it is no found in my source.

My source code:

<input ngui-auto-complete class="form-control" formControlName="dish"
      [(ngModel)]="dish"  no-match-found-text="El plato no se encuentra en nuestra base de datos. Se creará automáticamente"
      [source]="observableSource.bind(this)" [list-formatter]="myListFormatter"
      min-chars=3 display-property-name="name" max-num-list="5"
      (valueChanged)="pickDish($event)">

Thanks.

samukym commented 7 years ago

any solution?