Skip to content

Commit

Permalink
fixed completion callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Anselm Joseph authored and Anselm Joseph committed Jul 24, 2019
1 parent 8c8300e commit 7e8174a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function setup() {
console.log(data);
}

var newTemplate1 = new TeaPlates('poc-wrapper-1', template, loadingTemplate);
let noData = `<div>No Data available</div>`
var newTemplate1 = new TeaPlates('poc-wrapper-1', template, loadingTemplate, noData);
newTemplate1.registerEventListeners('click', onclick);
newTemplate1.showLoading(1);

Expand All @@ -35,11 +36,14 @@ function setup() {
return data;
});
newTemplate1.reloadObjectAtUid(1);

newTemplate1.removeAllObjects();
});
}

setTimeout(() => {
newTemplate1.hideLoading(newDS);
newTemplate1.hideLoading();
newTemplate1.showNoDataElement();
}, 1000);

// var newTemplate2 = new TeaPlates('poc-wrapper-2', template, loadingTemplate);
Expand Down

0 comments on commit 7e8174a

Please sign in to comment.