resultTable.render();
}
})).render(byTag);
//search by requires
final ByRequiresSearcher byRequiresSearcher = new ByRequiresSearcher(util, "");
final Node byRequiresInput = byRequires.appendChild("<input type=\"text\" value=\"\"></input>");
AutoComplete acRequires = Y.newAutoComplete(AutoCompleteConfig.create().
resultHighlighter("phraseMatch").
inputNode(byRequiresInput).
source(byRequiresSearcher.autocompleteData()).
render(true)
);
Y.newButton(ButtonConfig.create().label("Search").
on("click", new EventCallback<ButtonEvent>() {
@Override
public void call(ButtonEvent e) {
String keyword = byRequiresInput.get("value");
byRequiresSearcher.setRequire(keyword);
JsArray<Module> results = SearchUtil.search(util.getModules(), byRequiresSearcher);
console.log("search by Requires keyword: "+keyword+", results: "+results.length());
resultTable.data(results);
resultTable.render();
}