');
-
- if (this.totalPages < 5) {
- from = 1;
- to = this.totalPages;
- } else {
- from = this.options.pageNumber - 2;
- to = from + 4;
- if (from < 1) {
- from = 1;
- to = 5;
- }
- if (to > this.totalPages) {
- to = this.totalPages;
- from = to - 4;
- }
- }
- for (i = from; i <= to; i++) {
- html.push('
'
- ].join('');
-
- // Hide empty data on Card view when smartDisplay is set to true.
- if (that.options.cardView && that.options.smartDisplay && value === '') {
- // Should set a placeholder for event binding correct fieldIndex
- text = '';
- }
- }
-
- html.push(text);
- });
-
- if (this.options.cardView) {
- html.push('');
- }
-
- html.push('
');
- }
-
- // show no records
- if (!html.length) {
- html.push('