HTML allows specifying <datalist> component with a list of <option> elements. We should have a DataList control in DotVVM.
Since it does not have a concept of selected values, we cannot use the classes Selector or SelectorBase.
However, we will need to have it the DataSource property and ItemTextBinding, which would extract the display value in case the data source contains a collection of objects.
Then, we can add the List property to the TextBox control, which would receive the ID of the associated DataList control, and do the trick. The usage would look like this:
HTML allows specifying
<datalist>
component with a list of<option>
elements. We should have aDataList
control in DotVVM.Since it does not have a concept of selected values, we cannot use the classes
Selector
orSelectorBase
. However, we will need to have it theDataSource
property andItemTextBinding
, which would extract the display value in case the data source contains a collection of objects.Then, we can add the
List
property to theTextBox
control, which would receive the ID of the associatedDataList
control, and do the trick. The usage would look like this: