dotnet-websharper / ui

A reactive UI library for WebSharper.
https://websharper-samples.github.io/ui/
Apache License 2.0
77 stars 22 forks source link

Binding to multiple select controls #273

Closed granicz closed 10 months ago

granicz commented 11 months ago
  1. Given the following template code, Options has type Var<string> and only returns the first selected element. It should return a Var<string list> with all selected elements.
<select ws-var="Options" multiple>
    <option>Option 1</option>
    <option>Option 2</option>
    <option>Option 3</option>
    <option>Option 4</option>
    <option>Option 5</option>
</select>
  1. To accompany this from the combinator side, we also need a Doc.InputType.SelectMultiple.