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