akveo / akveo/ng2-smart-table

How to search column after applying valuePrepareFunction()

Đang mở
#640 1 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
867
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.