Skip to content

Commit

Permalink
Ensure styles are applied when local pagination changes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 6, 2023
1 parent 90d3865 commit b274496
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ export class DataTabulatorView extends HTMLBoxView {
this._updating_page = true
this.model.page = pageno
this._updating_page = false
this.setStyles()
}
}

Expand Down Expand Up @@ -969,10 +970,18 @@ export class DataTabulatorView extends HTMLBoxView {

setPage(): void {
this.tabulator.setPage(Math.min(this.model.max_page, this.model.page))
if (this.model.pagination === "local") {
this.renderChildren()
this.setStyles()
}
}

setPageSize(): void {
this.tabulator.setPageSize(this.model.page_size)
if (this.model.pagination === "local") {
this.renderChildren()
this.setStyles()
}
}

setSelection(): void {
Expand Down

0 comments on commit b274496

Please sign in to comment.