I havea panel plugin for a custom panerl area that gets data from an external API that populate a k-table we need to be able to filter the data with a select drop down to update the data in the table accordingly
Can this be done with the built in seclect feild or do i need a custom one. What is the best way to go about this?
I would think the <k-select-input> component might be the better choice if you don’t need the extra field stuff (label, icon etc). In your parent component keep track of the selected filter value (pass it to the input component via :value= and update it with the @input event) and then filter the data according to your filter and pass the filtered data (best way via a computed prop) to the table component.
I do something similar in Retour though with a search input: retour-for-kirby/src/panel/components/Views/CollectionView.vue at main · distantnative/retour-for-kirby · GitHub