| | |
| | | }); |
| | | } |
| | | |
| | | handlePaginatorChange(event) { |
| | | this.recordsToDisplay = event.detail.recordsToDisplay; |
| | | this.preSelected = event.detail.preSelected; |
| | | if (this.recordsToDisplay && this.recordsToDisplay > 0) { |
| | | this.rowNumberOffset = this.recordsToDisplay[0].rowNumber - 1; |
| | | } else { |
| | | this.rowNumberOffset = 0; |
| | | } |
| | | } |
| | | |
| | | handleChange(event) { |
| | | let fieldName = event.target.getAttribute("data-field"); |
| | | let value = event.detail.value; |
| | |
| | | this.sortDirection = sortDirection; |
| | | this.sortedBy = sortedBy; |
| | | } |
| | | handlePaginatorChange(event) { |
| | | this.recordsToDisplay = event.detail.recordsToDisplay; |
| | | this.preSelected = event.detail.preSelected; |
| | | if (this.recordsToDisplay && this.recordsToDisplay > 0) { |
| | | this.rowNumberOffset = this.recordsToDisplay[0].rowNumber - 1; |
| | | } else { |
| | | this.rowNumberOffset = 0; |
| | | } |
| | | } |
| | | |
| | | handlePrevious() { |
| | | this.currentPageToken = Number(this.currentPageToken) - Number(this.pageSize); |