Questions about html filter in ng2-smart-table
Ouverte
- Langage dominant
- TypeScript
- Étoiles
- 1.6k
- Forks
- 867
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I have 2 questions:
1 - What configuration do I need to make so that a column filter is activated when typing 1 character? In my implementation it works from 2 characters.
2 - I put the type of a column in my table as html because it shows a stripe with status color. As the column type is html how can I filter this column? Below is an example of a piece of code.
statusRDO: {
title: 'Status RDO',
type: 'html',
valuePrepareFunction: (row, data) => {
if (data.status === "1"){
return `
PREENCHENDO RELATÓRIO
`;
}
else if (data.status === "2"){
return `
REVISAR RELATÓRIO
`;
}
else if (data.status === "3"){
return `
APROVADO
`;
}
},
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.