akveo / akveo/ng2-smart-table

selectText doesn't emit callback event in filterFunction

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

描述

Hello guys!
When I make change in select filter I get callback event where I can get chosen value of filter and send it to server (function return true). But when we chose default value which i set up in selectText I can't get event to see it and cant send data to server (function return false)

```
status: {
title: fieldNames['status'],
class: 'title-column',
filterFunction(value1?: string, value2?: string): boolean {
return value1 === value2
},
filter: {
type: 'list',
config: {
selectText: 'All',
list: [
{value: 'Active', title: 'Active'},
{value: 'AssosiatedWithGroup', title: 'AssosiatedWithGroup'},
{value: 'RegisteredToOperator', title: 'RegisteredToOperator'}
],
},
},
```

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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