akveo / akveo/ng2-smart-table

Prevent page jump when refreshing table data

Ouverte
#1,296 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
1.6k
Forks
867
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I'm automatically refreshing the data by subscribing to HttpClient and populating LocalDataSource. Upon refresh, the page jump to top and back to the bottom where the table lies. I believe this is due to the table removing the rows then adding back the rows.

Any ideas how to prevent the page jump and make it data refresh more seamless?

source: LocalDataSource = new LocalDataSource();

this.httpService.getTableData()
.subscribe((data: Data[]) => {
this.source.load(data);
});

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.