PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Autocomplete

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

Is there any code available that would ensure that the filter result is retrieved after entering a minimum number of characters (autocomplete), so that the filter is not triggered by pressing enter?
At a minimum, I would need to display a search button if autocomplete is not possible.
Thank you very much for your help.

Hello

Unfortunately the plugin does not have such a feature

I found solution (posts-table-filterable/assets/js/filter.js). Can you extend your plugin in future update for this code?

'use strict';

class TABLEON_Filter {
// ... (rest of the code remains the same)

draw() {
// ... (rest of the code remains the same)

case 'textinput':

elem = document.createElement('input');
elem.setAttribute('data-key', key);
elem.setAttribute('type', 'search');
if (this.data[key]['minlength']) {
elem.setAttribute('minlength', this.data[key]['minlength']);
} else {
elem.setAttribute('minlength', 1);
}
elem.className = 'tableon-text-search';

if (this.data[key]['placeholder']) {
elem.setAttribute('placeholder', this.data[key]['placeholder']);
}

if (_this.dtable.request_data.filter_data[key]) {
elem.value = _this.dtable.request_data.filter_data[key];
}

// Adding autocomplete function
elem.addEventListener('keyup', function(e) {
if (this.value.length >= 2) {
_this.dtable.request_data.filter_data[key] = this.value;
_this.redraw_table();
}
});

this.dtable.attach_keyup_event(elem);
this.dtable.attach_mouseup_event(elem);

break;

// ... (rest of the code remains the same)
}

// ... (rest of the code remains the same)
}

Hello

Thank you for your cooperation

I passed this on to the developers