DataTable filter fails on composition api

UI Components for Vue
Post Reply
kurkoc
Posts: 1
Joined: 26 Apr 2021, 14:29

02 May 2021, 19:28

hello everyone;

i want to use datatable component using composition api. everything looks fine except filtering.

Code: Select all

		setup(){

			let filters =reactive({
					id : {value: '', matchMode : "equals"}
				});
			return {filters,...useDataTable(institutionService.getAllInstitutionsPaged)};
		},
it works fine when I do the same with the traditional way

Code: Select all

		data() {
			return {
				 filters: {
				 	id : {value: '', matchMode : FilterMatchMode.EQUALS}
				}
			}
		},
Do you have any ideas?

tugce.kucukoglu
Posts: 121
Joined: 23 Oct 2020, 09:28

11 Jun 2021, 15:13

Hello,

Here is an example for DataTable filtering https://codesandbox.io/s/owfz0

Best,

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests