Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active May 27, 2016 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/0363731f98fc14df0ec84dece9791241 to your computer and use it in GitHub Desktop.
Save goofmint/0363731f98fc14df0ec84dece9791241 to your computer and use it in GitHub Desktop.
setData: function(data, dummyColNums) {
if (h5.async.isPromise(data)) {
var indicator = this.indicator();
indicator.show();
data.done(this.own(function(d) {
this.setData(d, dummyColNums);
indicator.hide();
}));
return;
}
this._gridWrapperController.setData(data, dummyColNums);
this.$find('.dataLength').text(data.length);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment