D3vugu-components/components/input/dropdown.vugu
David Vogel 25f6c47602 Add dropdown component
- Add list binder interface
- Update input example page
2023-05-27 13:37:40 +02:00

17 lines
528 B
Plaintext

<select vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1685186383"}' :value="c.currentKey()" @change="c.handleChange(event)">
<option vg-for='_, entry := range c.keyValuePairs()' :value='entry.Key' :selected='c.isKeySelected(entry.Key)' vg-content='entry.Value'></option>
</select>
<style>
.d3c-1685186383 {
padding: 0.25em 0.5em;
}
</style>
<script type="application/x-go">
import (
//"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>