Replacing boilerplate text

Replacing boilerplate text

bgardnerbgardner Posts: 17Questions: 0Answers: 0
edited December 2009 in General
One of the great features of DataTables is the ability to easily search through your results. However, my customer has requested that the label next to the search box be changed to "Filter" or "Filter Results." I tried to handle this in the dataTable() call like the following, but to no effect.

[code]
oTable = $('#request-table').dataTable({
"bJQueryUI": true,
"bAutoWidth": false,
"sSearch": "Filter Results"
});
[/code]

Is there another way (other than doing something completely naughty like updating the dataTables.js) to get this to appear with a different label?

Brian

Replies

  • bgardnerbgardner Posts: 17Questions: 0Answers: 0
    OK, I found it. I had it wrong in the code above.

    [code]
    oTable = $('#request-table').dataTable({
    "bJQueryUI": true,
    "bAutoWidth": false,
    "oLanguage": {
    "sSearch": "Filter results:"
    }
    });
    [/code]

    Brian
This discussion has been closed.