You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've read a lot of posts but cannot find an answer.
I created a link. When clicked on, some JS copies a string into the search field. I know that that's not enough to start the filter. I need to trigger it, but I cannot get it to work. Please help.
This is the JS of the link (id=onderwerp):
$('#onderwerp').click(function () {
$('.form-control').val('some string'); // copy string to footable search field. THIS WORKS!
$('.w-footable').trigger('footable_filter', { filter: $('.form-control').val() });
});
The text was updated successfully, but these errors were encountered:
Ooo, wait, I was stuck in V2 code instead of V3...which is completely different!
Solved:
$('#onderwerp').click(function () {
var filtering = FooTable.get('.w-footable').use(FooTable.Filtering), filter = 'some string';
filtering.addFilter('status', filter, ); // no value after last comma means search in ALL columns
filtering.filter();
$('.form-control').val('some string');
});
Hi, I've read a lot of posts but cannot find an answer.
I created a link. When clicked on, some JS copies a string into the search field. I know that that's not enough to start the filter. I need to trigger it, but I cannot get it to work. Please help.
This is the JS of the link (id=onderwerp):
The text was updated successfully, but these errors were encountered: