Render a child view from the Parent View without rendering the parent

In the child view , we are passing the set of results of items and in the parent view we are using the filter

in our case from the parent view we will get a list of item details need to be displayed in the child view but this is obtained by uploading

so by using self.render(); we will lost the uploaded content

the usage of self.render in the child view will not work

So we have to use the below method:

   var inventoryViews = new InventoryManagementResultView({
                            details: self.details,
                            headerView: self,
                            importedData: importedData // Use cached imported data
                        });
                        // Render the child view and append its content inside the inventory-overview div
                        self.$('.inventory-overview').html(inventoryViews.render().el);

Leave a comment

Your email address will not be published. Required fields are marked *