public class LocalBloodhound<T> extends Bloodhound<T>
A Bloodhound implementation for local datasets.
| Constructor and Description |
|---|
LocalBloodhound(String name,
BloodhoundConfig config,
List<String> datasource) |
LocalBloodhound(String name,
List<String> datasource) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<T> |
getChoices(String input)
Get an iterable of choices for the given input term.
|
String |
renderChoice(T choice)
Render the given choice to a Javascript object, e.g
|
createJson, getConfig, getFunction, getName, getRemoteUrl, onBind, onRequestafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindpublic LocalBloodhound(String name, BloodhoundConfig config, List<String> datasource)
public Iterable<T> getChoices(String input)
SourceGet an iterable of choices for the given input term.
getChoices in interface Source<T>getChoices in class Bloodhound<T>Copyright © 2011–2014 AgileCoders. All rights reserved.