ember.js - Ember: render template as view property -
i have view i'd declare in hbs:
{{view app.componentview title="text field" optionstemplate="textfieldoptions" }} {{view app.componentview title="static label" optionstemplate="statiffieldoptions"}}
then in view definition i'd following:
app.componentview = ember.view.extend({ templatename="blah", attributebindings:["data-type", "draggable", "title", "rel", "data-trigger", "data-content"], optionstemplate:null, "data-content": function() { var renderedoptionstemplate = em.xxx(this.get("optionstemplate")); return renderedoptionstemplate; }.property(), //snip });
what i'm looking should put in place intead of em.xxx call there. possible? can using either partial or template or whatever...
Comments
Post a Comment