akveo / akveo/ng2-smart-table

issue on filter object value

Đang mở
#269 1 bình luận 0 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ả

Hi,
I am loading data from array object. but i can't able to filter that column when i load data from object.
i load the data to column like that

` address: {
title: 'City',
valuePrepareFunction: (value) => { return value.cityName },
},`

also i cant able to load two values from the same objects, here address is the object i got cityName from the object, but if i wanna load postalcode from address it shows error

` address: {
title: 'City',
valuePrepareFunction: (value) => { return address.postalCode },
},`

_zone.js:518 ViewWrappedError {__zone_symbol__error: Error: Error in ./ViewCellComponent class ViewCellComponent - inline template:4:30 caused by: Cannot…, _nativeError: ZoneAwareError, originalError: TypeError: Cannot read property 'postalCode' of undefined
at valuePrepareFunction (http://localh…, context: DebugContext}_

also if i use same object name as column name also it shows duplicate error, anyone please help me to find out the solution

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.