How to disable certain FiltersOptions for specific columns

UI Components for Vue
Post Reply
miloscu
Posts: 1
Joined: 25 Jan 2022, 15:46

25 Jan 2022, 15:51

Hi guys, I'm trying to disable some filter options on a per column basis

Code: Select all

filters: {
      global: { value: null, matchMode: FilterMatchMode.CONTAINS },
      name: { operator: FilterOperator.AND, constraints: [{ value: null, matchMode: FilterMatchMode.CONTAINS }] },
      address: { operator: FilterOperator.AND, constraints: [{ value: null, matchMode: FilterMatchMode.CONTAINS}] }
      }
How do I use the PrimeVue API

Code: Select all

interface FiltersOptions {
    startsWith?(value: any, filter: any, filterLocale: string): boolean,
    ...
    }
 
to disable startsWith in name for example? Thanks

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests