No method or properties for scroll on TurboTable

UI Components for Angular
Post Reply
yokohama
Posts: 2
Joined: 22 May 2018, 10:58

22 May 2018, 11:12

We use DOM to scroll on TurboTable.
Because there seems be no properties or methods to specify the scroll position.
Is this implementation correct?

Code: Select all

private scrollTop() {
const scrollElm = this.documentList.el.nativeElement.getElementsByClassName(
'ui-table-scrollable-body'
)[0];
if (scrollElm) {
scrollElm.scrollTop = 0;
}
}

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests