-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column Filter: Expose 'applyFilter' method #3519
Comments
Thanks for the PR. I looked into it but calling the |
Yes, that's exactly the purpose of the PR, here is a code sample to better understand the request: With only <Column field="name" header="Name" style="min-width:12rem">
<template #body="{data}">
{{data.name}}
</template>
<template #filter="{filterModel,filterCallback}">
<InputText type="text" v-model="filterModel.value" @keydown.enter="filterCallback()" class="p-column-filter" :placeholder="`Search by name - `" v-tooltip.top.focus="'Hit enter key to filter'"/>
</template>
</Column> With <Column field="name" header="Name" style="min-width:12rem">
<template #body="{data}">
{{data.name}}
</template>
<template #filter="{filterModel,applyFilter}">
<InputText type="text" v-model="filterModel.value" @keydown.enter="applyFilter()" class="p-column-filter" :placeholder="`Search by name - `" v-tooltip.top.focus="'Hit enter key to filter'"/>
</template>
</Column> |
this feature does not work as mentioned, in the latest version. Try it on this official filter features demo : https://stackblitz.com/run?file=src%2FApp.vue Replace
|
what does not work? what are you expecting?
This link won't work directly
You may need to use |
Thank you @BenjaminMINK |
Describe the feature you would like to see added
Expose the
applyFilter
method to custom filter template can be handful in order to close the overlay on keydown event for exampleIs your feature request related to a problem?
No response
Describe the solution you'd like
No response
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: