summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/SelectBox.vue
diff options
context:
space:
mode:
authorUdo Walter2019-03-03 02:52:00 +0100
committerUdo Walter2019-03-03 02:52:00 +0100
commit0a58b40cca8f86ab6b23749a2d260fa1ba2b5cd8 (patch)
tree157c445b6dbc99d5855039c7273f1d8ea4a7b7e8 /webapp/src/components/SelectBox.vue
parent[webapp] small bugfixes + eslint fixes + color fix (diff)
downloadbas-0a58b40cca8f86ab6b23749a2d260fa1ba2b5cd8.tar.gz
bas-0a58b40cca8f86ab6b23749a2d260fa1ba2b5cd8.tar.xz
bas-0a58b40cca8f86ab6b23749a2d260fa1ba2b5cd8.zip
[webapp] add single select to selectbox; eslint fix
Diffstat (limited to 'webapp/src/components/SelectBox.vue')
-rw-r--r--webapp/src/components/SelectBox.vue14
1 files changed, 13 insertions, 1 deletions
diff --git a/webapp/src/components/SelectBox.vue b/webapp/src/components/SelectBox.vue
index 7712201..4fe4593 100644
--- a/webapp/src/components/SelectBox.vue
+++ b/webapp/src/components/SelectBox.vue
@@ -38,7 +38,15 @@
<v-icon class="select-input-arrow" :class="{ 'expand-arrow-flipped': menu }" :color="menu ? 'primary' : ''">arrow_drop_down</v-icon>
</div>
<v-card>
- <data-table :value="value" @input="$emit('input', $event)" :headers="headers" :items="items" slim :row-count="6"></data-table>
+ <data-table
+ :value="value"
+ @input="$emit('input', $event)"
+ :headers="headers"
+ :items="items"
+ slim
+ :row-count="6"
+ :single-select="singleSelect"
+ ></data-table>
</v-card>
</v-menu>
</v-input>
@@ -93,6 +101,10 @@ export default {
},
prependIcon: {
type: String
+ },
+ singleSelect: {
+ type: Boolean,
+ default: false
}
},
data () {