B
B
bullock2017-12-29 11:54:47
JavaScript
bullock, 2017-12-29 11:54:47

How to insert another view into a backbone view?

I don't know Backbone very well, hence the question.
My application generates a table and I have two views for this:

  1. For stitches<tr> App.View.BaseRow
  2. <tbody>For table bodyApp.View.BaseTableBody

When you click on one of the table rows, the following should happen:
  1. Insert a new line below the line that was clicked on.
  2. Insert some data into a new line, and the model of this data should differ from the data model App.View.BaseRow, to be more specific, another table with different columns should appear there..
5a4602b88c081498000681.png
Tell me how to implement it in Backbone.JS style?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew Ghostuhin, 2018-01-04
@bullock

Your case has been discussed for a long time, your pain is the pain of the backbone itself, hemorrhoids are managed using a marionette.
Here is a manual from a wise female developer on this topic https://spin.atomicobject.com/2014/01/25/render-ne...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question