Closed Adigezalov closed 3 years ago
@Adigezalov to get the value of selected suggest you can use select event:
const loadSuggest = (ymaps) => {
const suggestView = new ymaps.SuggestView("suggest");
suggestView.events.add("select", (e) => {
console.log(e.get("item"));
});
};
IDK about styling suggest, but you can try to do it with css:
ymaps[class*="search__suggest"] {
// styles for dropdown container
}
ymaps[class*="suggest-item"] {
// styles for dropdown item
}
I have code:
How can I get the value of the selected suggest?
And the second question is, how can I style the dropdown suggest?