From 21b124b0c7bd598fe96ea4802b100c6c7f0e908e Mon Sep 17 00:00:00 2001 From: rubjo <42270947+rubjo@users.noreply.github.com> Date: Tue, 14 Jun 2022 13:46:34 +0200 Subject: [PATCH] filterMatchModeOptions: Use valid object With label and value as described --- src/views/datatable/DataTableDoc.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index 84ebec4c4..a3da5fa8a 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -840,8 +840,8 @@ app.use(PrimeVue, {
matchModes: [
- {label: 'Starts With', FilterMatchMode.STARTS_WITH},
- {label: 'Contains', FilterMatchMode.CONTAINS},
+ {label: 'Starts With', value: FilterMatchMode.STARTS_WITH},
+ {label: 'Contains', value: FilterMatchMode.CONTAINS},
]
@@ -856,8 +856,8 @@ FilterService.register('myfilter', (a,b) => a === b);
matchModes: [
{label: 'My Filter', "myfilter"},
- {label: 'Starts With', FilterMatchMode.STARTS_WITH},
- {label: 'Contains', FilterMatchMode.CONTAINS},
+ {label: 'Starts With', value: FilterMatchMode.STARTS_WITH},
+ {label: 'Contains', value: FilterMatchMode.CONTAINS},
]