Custom search markup like pagination for bootstrap
Custom search markup like pagination for bootstrap
Hi,
I've tried to create a custom markup for the global search, to intergrate it with better bootstrap.
I've seen https://github.com/DataTables/Plugins/tree/master/integration/bootstrap
which works great.
I've found on line 1818
[code]
function _fnFeatureHtmlFilter(oSettings) {
var oPreviousSearch = oSettings.oPreviousSearch;
var sSearchStr = oSettings.oLanguage.sSearch;
sSearchStr = (sSearchStr.indexOf('_INPUT_') !== -1) ?
sSearchStr.replace('_INPUT_', '') :
sSearchStr === "" ? '' : sSearchStr + ' CUSTOM ';
...
}
[/code]
So I need to change this
[code]
sSearchStr === "" ? '' : sSearchStr + ' CUSTOM ';
...
nFilter.innerHTML = '' + sSearchStr + '';
[/code]
in
[code]
sSearchStr === "" ? '' : '';
...
nFilter.innerHTML = '' + sSearchStr + '';
[/code]
As _fnFeatureHtmlFilter is a private function, which cann't be extended, I need a other way to get this running. I was thinking of a wrapper, which would be a bad solution.
Is there a better way?
I've tried to create a custom markup for the global search, to intergrate it with better bootstrap.
I've seen https://github.com/DataTables/Plugins/tree/master/integration/bootstrap
which works great.
I've found on line 1818
[code]
function _fnFeatureHtmlFilter(oSettings) {
var oPreviousSearch = oSettings.oPreviousSearch;
var sSearchStr = oSettings.oLanguage.sSearch;
sSearchStr = (sSearchStr.indexOf('_INPUT_') !== -1) ?
sSearchStr.replace('_INPUT_', '') :
sSearchStr === "" ? '' : sSearchStr + ' CUSTOM ';
...
}
[/code]
So I need to change this
[code]
sSearchStr === "" ? '' : sSearchStr + ' CUSTOM ';
...
nFilter.innerHTML = '' + sSearchStr + '';
[/code]
in
[code]
sSearchStr === "" ? '' : '';
...
nFilter.innerHTML = '' + sSearchStr + '';
[/code]
As _fnFeatureHtmlFilter is a private function, which cann't be extended, I need a other way to get this running. I was thinking of a wrapper, which would be a bad solution.
Is there a better way?
This discussion has been closed.