Chain filters in Table Search Text Input (hit enter -> add current input value as filter)?

Is there a way to do this without publishing the Table vendor files? This is how I would do it in JavaScript, hope it helps to understand what I want
if (searchInput) {
searchInput.addEventListener('keydown', function (event) {
if (event.key === 'Enter') {
event.preventDefault();

const currentValue = searchInput.value.trim();

if (currentValue) {
addFilter(currentValue);

searchInput.value = '';
}
}
});
if (searchInput) {
searchInput.addEventListener('keydown', function (event) {
if (event.key === 'Enter') {
event.preventDefault();

const currentValue = searchInput.value.trim();

if (currentValue) {
addFilter(currentValue);

searchInput.value = '';
}
}
});
Hit Enter -> Add Filter -> Clear Input -> Hit Enter -> Add Another Filter Remove filters by clicking filter tags (default Filament behavior) I did consult this before asking and searched for "chain" in Discord https://filamentphp.com/docs/3.x/tables/columns/getting-started#searching Any help would be much appreciated
1 Reply
Avriant
AvriantOP5mo ago
:depressed_tofu: :depressed_tofu: Bump
Want results from more Discord servers?
Add your server