+ Start a Discussion
Venkatesh LVenkatesh L 

How to Create a custom component whose behaviour should be in the form of autocomplete. For example, if I enter A in the field it should display names starting with A.

SFDC Coder 1SFDC Coder 1
Hi Venkatesh,

You can use a component like ui:inputText and you can use keyup handler. Then, fire an event in the handler (js file) with the search string. You can listen for and handle this event accordingly.
Below is the tutorial that walks through the setup process.
http://developerforce.github.io/lightning-components-tutorial/create-searchbar-component.html
Hope this will help you.

P.S. Mark it as Best Answer if it helps you..