akveo / akveo/ng2-smart-table

Questions about html filter in ng2-smart-table

未关闭
#1,250 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

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
`;
}
},

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。