0๐
handleFilterCustomerTable(searchInput) {
this.filteredCustomerTable = this.originalCustomerTable.filter(cust => {
let rowText = '';
cust.forEach(c => {
rowText += this.createSearchText(
c.pos,
c.centerNumber,
this.formatSSN(c.ssn),
c.firstName,
c.lastName,
c.dob,
c.phone,
c.email,
c.custId
);
});
return rowText.toLocaleLowerCase().indexOf(searchInput.toLocaleLowerCase()) >= 0;
});
},
createSearchText(...inputs) {
return inputs.join('\0'); // '\0' is the literal null character
},
- [Vuejs]-Pass an array between two sibling components
- [Vuejs]-Unable to redirect after login in vuejs
Source:stackexchange.com