How do you use the custom-filter prop and add new filter within? Using this data I would like to find all the "Unemployed Chickens" and remove all special Characters and spaces:
data () {
return {
headers: [
{ text: 'Name', value: 'name' },
{ text: 'Animal', value: 'animal' },
{ text: 'Job', value: 'job' },
{ text: 'Age', value: 'age' },
],
items: [
{ name: 'Frozen Yogurt', animal: 'Chicken', job: 'Electrician', age: 24 },
{ name: 'Eclair', animal: 'Cow', job: 'IT Consultant', age:45 },
{ name: 'Cupcake', animal: 'Cow', job: 'Unemployed', age:26 },
{ name: 'Gingerbread', animal: 'Chicken', job: 'Unemployed', age:38 },
{ name: 'Jelly bean', animal: 'Cow', job: 'Fraud Specalist', age:52 },
{ name: 'Lollipop', animal: 'Sheep', job: 'Unemployed', age:18 },
{ name: 'Honeycomb', animal: 'Sheep', job: 'Plumber', age:32 },
{ name: 'Donut', animal: 'Chicken', job: 'Unemployed', age:22 },
{ name: 'KitKat', animal: 'Sheep', job: 'Gym Junkie', age:41 },
]
}
},
Putting this here because I couldn't find the documentation. I changed the search to a custom filter so that you can search multiple fields using a space. That way using the code below you can search for "Unemployed Chicken" to get your results.