Ngx-bootstrap: Open list data when focus on input

Created on 20 Sep 2016  路  3Comments  路  Source: valor-software/ngx-bootstrap

I'm using "typeahead"
[typeaheadItemTemplate]="customItemTemplate"
[typeaheadOptionField]="'name'"
(typeaheadOnSelect)="typeaheadOnSelect($event)"
class="form-control">

How do open the list "statesComplex" and select it when focus on input. I mean it like with example "Typeahead inside a form" on this link http://valor-software.com/ng2-bootstrap/#/typeahead

Thanks

Most helpful comment

If I have read your question right, what you are missing is:
[typeaheadMinLength]="0"
Which opens the list as soon as you click on the input.

All 3 comments

If I have read your question right, what you are missing is:
[typeaheadMinLength]="0"
Which opens the list as soon as you click on the input.

@chriscbrock thank for your help!

Would be cool to add this to an example to the demo page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KimBum picture KimBum  路  3Comments

phmello picture phmello  路  3Comments

haisaco picture haisaco  路  3Comments

ShaileshInfyom picture ShaileshInfyom  路  3Comments

MihaiHoriaPopescu picture MihaiHoriaPopescu  路  3Comments