akveo / akveo/ng2-smart-table

can't empty the data of the table

Open
#516 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.