akveo / akveo/ng2-smart-table

Pipes for data display?

Ouverte
#65 2 commentaires 4 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 have a use case, where I have a table of issues and the period of time they took to be resolved. The time they take to be resolved varies from several minutes, to several days. So I use a [MomentJS Pipe](https://github.com/urish/angular2-moment) to parse the times into a human readable form, e.g. `2 hours` or `14 minutes`. However, this poses an error with table sorting, as 14 is bigger than 2, so it gets put above it in the table.

I believe the ideal solution is to be able to leave the data in its raw form before it's passed to the table and then specify a display pipe which the module can apply after sort (but before search?)?

What do you think?

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.