Change text for search or 'counter'
Change text for search or 'counter'
I know it could be easily done with a post-load javascript replace, but is there a built in way to change the pre-rendered text?
What I mean is something like changing
'Search' to 'Filter'
-and changing
'Showing 1 to 7 of 7 entries' to '1 to 7 of 7 somethings'
Thanks!
What I mean is something like changing
'Search' to 'Filter'
-and changing
'Showing 1 to 7 of 7 entries' to '1 to 7 of 7 somethings'
Thanks!
This discussion has been closed.
Replies
Absolutely there is. Have a look at the oLanguage initialisation parameters: http://datatables.net/usage#language
You can specify custom text for anything that DataTables uses (which is how it provides it's internationalisation). You can also load the language information from an Ajax source if you want.
Regards,
Allan
Sections:
- oLanguage.sSearch
and
- oLanguage.sInfo