2

I am using the angularjs-bootstrap-ui plugin found here. Here is my html

<input type="text" ng-model="asyncSelected" typeahead-loading="loadingPeople" typeahead-min-length="3" placeholder="Search People" typeahead="person for person in findPeople($viewValue)" class="form-control typeahead-input" />

This is working great, however it says that it is built off of the bootstrap api, and looking at this there should be a way to use "hint" as a parameter somehow so that when you type it shows a hint grayed out. Is this not in the angular bootstrap ui api at all?

1

1 Answer 1

1

To get Typeahead's hint functionality working with angular-ui's Typeahead directive simply add the typeahead-show-hint="true"attribute to the input element. E.g:

<input
  type="text" 
  class="myClass"
  ng-model="selected" 
  uib-typeahead="item for item in vm.states | filter:$viewValue | limitTo:8"
  placeholder="State"
  typeahead-show-hint="true"
/>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.