jQuery datagridview text and internationalization - maikelbos0/VDT GitHub Wiki
It is possible to supply your own text for the various text elements that the datagridview uses, by overriding properties in the defaults or options under the resources
property. All resource texts are the result of functions that take parameters for all useful interpolation arguments. For more information about how to work with these settings, see defaults and options.
<div id="example-table" class="select multiselect">
</div>
<script type="text/javascript">
// Override the default paging 'Go' text
$.fn.datagridview.defaults.resources.getGoText = function(datagridview) {
return 'Navigate';
}
</script>
Below are all resource options that you can provide your own implementation of.
-
getDisplayBasicText(datagridview, page, totalPages)
should return the full text of the basic footer paging display -
getDisplayFullText(datagridview, page, totalPages, startRow, endRow, totalRows)
should return thefull text of the extended footer paging display -
getPageText(datagridview)
should return the label for the page input footer -
getPageSizeText(datagridview)
should return the label for the page size footer -
getGoText(datagridview)
should return the submit button text for the page and page size navigation