Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82566

Conditional Formatting within oLanguage > sInfo?

$
0
0
I am making some small tweaks to a DataTable entry, and came across this small problem - if the _TOTAL_ is anything other than one, it makes sense, but if my number of records just so happens to be one, the phrase just doesn't make sense - "There are 1 people in this Role"?

Is there any way to change sInfo if _TOTAL_ is 1?

$("#sqepMatrix").dataTable({
     "bJQueryUI": true,
     "bPaginate": false,
     "oLanguage": {
         "sInfo": "There are _TOTAL_ people in this Role."
     },
     "sPaginationType": "full_numbers"
});

Any ideas are very welcome!

Felix

Viewing all articles
Browse latest Browse all 82566

Latest Images

Trending Articles



Latest Images