infoBarTemplate

Gets additional information about start and end idexes, total item count, current page and page counts. The default value is "{0} - {1} of {2} items": It depends on 5 parameters.

  • {0} - start item index
  • {1} - end item index
  • {2} - total items count
  • {3} - current page
  • {4} - pages count
    <div id="pager"></div>
    <script type="text/javascript">
    $(function () {
        $("#pager").shieldPager({
            totalItems: 99,
            messages: {
                infoBarTemplate: "From {0} to {1} items of a total of {2}"
            }
            events: {
	            change: function (e) {
		            alert(e.currentPage);
	            }
            }
        });
    });
    </script>