Friday, 26 March 2021

Is there an equivalent of html datalist in Xamarin.Forms, mechanism that would allow to select predefined values but also a free-text entry?

We are building a Xamarin forms app.

One of the fields is supposed to be a select where you can pick one of the predefined values or enter a free text value like into the text field.

in HTML one would solve it by using <datalist>

    <input list="browsers" name="browser" id="browser">
    
    <datalist id="browsers">
      <option value="Edge">
      <option value="Firefox">
      <option value="Chrome">
      <option value="Opera">
      <option value="Safari">
    </datalist>

Is there an equivalent of HTML datalist control in Xamarin.Forms, that would allow selection of values and also a free-text entry?

If there isn't one, how is this sort of functionality (selection of values and also a free-text) achieved in iOS and Android? as it does feel like a quite common scenario.



from Is there an equivalent of html datalist in Xamarin.Forms, mechanism that would allow to select predefined values but also a free-text entry?

No comments:

Post a Comment