akveo / akveo/ng2-smart-table

How to search column after applying valuePrepareFunction()

Ouverte
#640 1 commentaire 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

For example if one of the column in my schema has following definition:

```
flag: {
title: 'Flag',
type: 'string',
valuePrepareFunction: (value) => {
return (value === true) ? 'On' : 'Off';
}
},
```
I can search the column by "true" or "false" but NOT by "On" or "Off". Is there way I can override search/filter logic so I can search by the transformed value of the column data?

I looked in documentation and I see we have "filterFunction" property but not sure how it can be used in my case? Thanks

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.