Issue Type:
Enhancement
Description:
Add a new prop onValueSelected to search components DataSearch and CategorySearch. This will accept a function which will be invoked with the current value when the selected value of the component changes (user presses enter or selects a suggestion or clicks outside). In case of autosuggest set to false this behaves like onValueChange.
This prop will eliminate the need of having an extra component watching the search component with react prop. This also solves a use case of only using the search component for suggestions and displaying the results in a different page with the help of URLParams.
Update - We can also extend the CategorySearch by passing the selected category along with the value to this function. A very interesting and useful usecase is using this category to set the value of a different component, say MultiList as in the Car Store example app.
Issue Type:
Enhancement
Description:
Add a new prop
onValueSelectedto search componentsDataSearchandCategorySearch. This will accept a function which will be invoked with the current value when the selected value of the component changes (user presses enter or selects a suggestion or clicks outside). In case ofautosuggestset tofalsethis behaves likeonValueChange.This prop will eliminate the need of having an extra component watching the search component with
reactprop. This also solves a use case of only using the search component for suggestions and displaying the results in a different page with the help ofURLParams.Update - We can also extend the
CategorySearchby passing the selected category along with the value to this function. A very interesting and useful usecase is using this category to set the value of a different component, sayMultiListas in the Car Store example app.