11.5 Sort Dropdown - Configure the Options

This commit is contained in:
Fredrick W Warren 2021-02-11 07:23:16 -08:00
parent f5c81af4c9
commit f4704ac990

View File

@ -1,7 +1,9 @@
<template>
<q-select
filled
v-model="model"
v-model="sortBy"
emit-value
map-options
class="col q-ml-sm"
:options="options"
lable="Sort by"
@ -14,9 +16,16 @@ export default {
name: 'Sort',
data () {
return {
model: null,
sortBy: null,
options: [
'Name', 'Due Date', 'Due Time'
{
label: 'Name',
value: 'name'
},
{
label: 'Date',
value: 'dueDate'
}
]
}
}