I have a CollectionView
that has :
- a tagName set to
tbody
( so its children are 'tr' ) - an
emptyView
.
The problem is: the emptyView
is never hidden.
See this fiddle : http://jsfiddle.net/EHQLF/
So my questions are :
- Why is the
emptyView
still here after click on "add" - Why does it works if I remove the
tagName
- I want the render of the emptyView to look like this:
<table><tr><td colspan="2">The collection is empty</td></tr></table>
What is the proper way to do that ?