I manually add a view to the dom element in my template with the following code:
appendHtml: function(collectionView, itemView, index){ collectionView.$("ul#search_list_container").append(itemView.el); }
In my template, I:
<script id='search-list-grid-template' type='text/x-handlebars-template'> <ul id="search_list_container"></ul> </script>
Although I am adding a view to ul # search_list_container, I have a default div wrapping the template:
<div> <ul id="search_list_container"> <a href="#"> <span id="search_list_item"> id invoice_number </span> </a> </li> </ul> </div>
Is there any way to avoid displaying the default tag "div" ?, I have no problem with this, but this doubt always occurred to me when I come up with this example.
Note. I have an itemView for ul compositeView and some other things that are not shown here.
Uuid
source share