tooltips on individual search inputbox

tooltips on individual search inputbox

rivaldidrivaldid Posts: 55Questions: 6Answers: 2

I'm using serverside pagination and I built a simple backend that make non- simple queries to db. I choose few hotkey:
<val, >val, & mean ==val, ! means <>val, % means like %val%, @ means not like %val%
A very simple syntax that can be provided as tooltips upon the footer inputboxes to the user interface.
I'm trying something like this, but it's not working:
table.$('tfoot tr[title]').tooltip({
'delay': 0,
'placement': 'test test',
'html': true,
});
Any help?

Answers

  • kthorngrenkthorngren Posts: 21,176Questions: 26Answers: 4,923

    Please provide a running test case showing what you are trying to do so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • rivaldidrivaldid Posts: 55Questions: 6Answers: 2
    edited March 2021

    It's hard because is a serverside pagination. Btw I solved:

        $('#presentation tfoot th').each( function (i) {
            var title = $('#presentation thead th').eq( $(this).index() ).text();
            $(this).html( '<divREMOVEME><input class="filter_' + title.replace(/\s/g, "") + '" type="text" placeholder="' + title + '" data-index="'+i+'" /></divREMOVEME>' );
            $(this)[0].children[0].setAttribute('title','<val \n >val \n & == val \n ! <> val \n % like %val% \n @ not like %val%');
        } );
    
This discussion has been closed.