akveo / akveo/ng2-smart-table

Table does not load data until until I hover over something

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

Here is a video showing the problem:
![smarttable](https://user-images.githubusercontent.com/31655968/47992545-78998c80-e0ed-11e8-998c-a3bfe406ba74.gif)

Table won't load data if I don't hover over menu on the left. Data is fetched correctly.
Strange behaviour right?
Removing spinner does not help. Here are my settings, and the way I'm fetching data:

```
TABLE_SETTINGS_SUBJECT = {
add: {
addButtonContent: '',
createButtonContent: '',
cancelButtonContent: '',
confirmCreate: true
},
edit: {
editButtonContent: '',
saveButtonContent: '',
cancelButtonContent: '',
confirmSave: true
},
actions: {
delete: false
},
columns: {
id: {
title: 'ID',
editable: false,
creatable: false
},
name: {
title: 'Name'
}
}
};
```

Data fetching:
```
this._subject.getAllSubjects().subscribe((data: ISubject[]) => {
this.subjects = data;
this.dataSource.load(this.subjects);
this.dataSource.reset();
this.data_loading = false;
},

```
Using latest ng2 smart table version, with ng2 completer and rxjs-compat for resolving issues with deprecation

Any suggestions?

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.