backbone.js - backbone el for tab in tabset? -


Whether the HTML element class (or ID) should be passed for the view, which is displayed on a tab in the tabet ? Some part of the code might explain a bit more:

  this.articleModel = new Article.Model1 (); This.articleView = New ArticleView.View ({Model: this.articleModel}); This.new_article = New Article.Model (); This.new_article.fetch (); This.editorView = New EditorView.EditorView ({el: $ ('tab2_area', model: this.new_article}); Option: [[Label: 'Tab 1', content: this.articleView.el}, {label: 'tab2', content: this tabset = new backbone.u. TabSet ({L: $ ('tab_details'), Option: this.editorView.el}});  

and correlated HTML templates:

  & lt; Body & gt; & Lt; Div id = "medium" style = "float: right; width: 80%; height: 100%;" & Gt; & Lt; Div class = "tab_example" & gt; & Lt; Div class = "tab2_area" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

without AL: $ ('. Tab2_rea') Returns the scene: type error: element is zero element. ParentNode.insertBefore (elementToInsert, element.nextSibling);

I am using xing-wysihtml5 on that scene.

Try

  Content: this.editorView $ El.html ()  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -