filterMatchModeOptions: Use valid object

With label and value as described
pull/2667/head
rubjo 2022-06-14 13:46:34 +02:00 committed by GitHub
parent bd299170b2
commit 21b124b0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -840,8 +840,8 @@ app.use(PrimeVue, {
<pre v-code.script><code>
matchModes: [
{label: 'Starts With', FilterMatchMode.STARTS_WITH},
{label: 'Contains', FilterMatchMode.CONTAINS},
{label: 'Starts With', value: FilterMatchMode.STARTS_WITH},
{label: 'Contains', value: FilterMatchMode.CONTAINS},
]
</code></pre>
@ -856,8 +856,8 @@ FilterService.register('myfilter', (a,b) => a === b);
<pre v-code.script><code>
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},
]
</code></pre>