'Vue JS Searching all record
I can only search the data within the page.. Is there a possible solution on searching all the data
(function () {
'use strict';
// Replace with your Custom View's view ID
var customViewID = 6387076;
var vm = new Vue({
data: {
searchText: '', // Add a section for search text to the data object
records: [],
},
computed: {
// Create a function to filter
filteredRecords: function () {
var self = this;
return self.records.filter(function (record) {
return record.employeename.value.indexOf(self.searchText) !== -1;
});
}
},
});
kintone.events.on('app.record.index.show', function (event) {
if (event.viewId !== customViewID) return event;
var records = event.records;
// Mount the Vue instance on the HTML element with ID #app in the custom view
vm.$mount('#app');
// Set the data
Vue.set(vm, 'records', records);
return event;
});
})();
I just want to view the data where name is like to record
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

