Page 1 of 1

DataTable filter fails on composition api

Posted: 02 May 2021, 19:28
by kurkoc
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?

Re: DataTable filter fails on composition api

Posted: 11 Jun 2021, 15:13
by tugce.kucukoglu
Hello,

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

Best,