akveo / akveo/ng2-smart-table

can't empty the data of the table

Đang mở
#516 2 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ả

Hello, I'm trying to empty the array of the table. But I cannot. I'm using mode: 'external' and when the data arrives from webservice if it's empty I do:

```
this.data.length = 0;
this.source.empty()
```

I tried also `this.data = []` but it doesn't work either.

The data source is:` this.source = new LocalDataSource(this.data);` I know I made if local but the object is local, I just do webservice calls on events.

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.