search pane- empty cell on only one field

search pane- empty cell on only one field

montoyammontoyam Posts: 568Questions: 136Answers: 5

I see how you can set the default for empty cells for each field:

$(document).ready(function() {
    var dt = $('#example').DataTable( {
        searchPanes:{
            emptyMessage:"</i></b>EMPTY</b></i>"
        },
        dom: 'Pfrtip',
    });
});

Most of my fields I want the empty message, but just one I don't want anything displayed. can you set emptymessage at the column level or only for the entire searchpane?

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @montoyam,

    Yes this should be possible, but it doesn't appear to be working. I've raised an issue internally and will report back here when there is progress.

    Thanks,
    Sandy

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @montoyam ,

    That should be the issue fixed now as you can see at this example. This will be available in the next SearchPanes release which we hope will be soon. Until then you can access the fix from the nightly builds.

    Thanks,
    Sandy

  • montoyammontoyam Posts: 568Questions: 136Answers: 5

    thank you

This discussion has been closed.