D3vugu-components/components/input/dropdown.vugu

18 lines
551 B
Plaintext
Raw Permalink Normal View History

<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;
/*margin: 0.5em 0;*/
}
</style>
<script type="application/x-go">
import (
//"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>