ember.js - Determining valueBinding for Ember.TextField at runtime -


i'm trying create generic editor page in ember.js app.

i need create few textfields bind attributes on model, know @ runtime fields model has. controller has field called metadata, describes fields generic editor form. want iterate on contents of metadata , build form directly. i'm trying this:

{{#each row in metadata.rows}}   {{#each element in row.elements}}     {{element.fieldname}}: {{view ember.textfield valuebindinding=model.get(fieldname)  }}<br>   {{/each}} {{/each}}   

this of course doesn't work textfield expecting reference model attribute can bind to.

i have created fiddle here illustrates problem , attempt solve it: http://jsfiddle.net/ianpetzer/haecb/

thanks help

i found solution problem. documented on here: https://stackoverflow.com/a/15053152/1369763

thanks @tess


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -