If I bind a template to a datatable and use some values, they’ll show up as “undefined” before the user makes a selection in the master. How can we not render the template at all before a selection is made?
http://webix.com/snippet/e2febf94
I tried onBindRequest
, but there’s no showOverlay() for template
:
on: {
onBindRequest: function () {
if (Object.keys(this.data).length === 0 || this.count && !this.count())
// this.showOverlay("Sorry, there is no data"); - no showOverlay method
// this.hide(); - doesn't work because onBindRequest never fires again if we hide the view
}
}
At http://webix.com/snippet/25908e70 I tried this.setHTML, which works, but how do we tell the component to repaint itself after that whenre there is data?