PO-TABLE SCROLL AUTOMATICO #2003
Unanswered
JCTG-Jorge
asked this question in
Angular
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Estou tentando fazer o scroll do PO-TABLE subir e descer automaticamente e lentamente, tentei algo com JavaScript.
mais nao tenho estas propriedades na po-table.
Seria algo assim..
let tabela = document.getElementById('po-table'); // id da tabela ou className
let velocidade = 1; // ajustar a velocidade
scrollTabela() {
this.tabela.scrollTop += velocidade;
if (this.tabela.scrollTop + this.tabela.clientHeight >= this.tabela.scrollHeight) {
velocidade = -1;
} else if (this.tabela.scrollTop <= 0) {
velocidade = 1;
}
}
intervalID = setInterval(this.scrollTabela, 100); // ajuste o intervalo para controlar a velocidade do scroll
alguem tem ideia como posso fazer no po-table...
Beta Was this translation helpful? Give feedback.
All reactions