ember.js - Emberjs - Create 'Edit' action that edits a model without leaving '/models' url -


I need help creating an 'edit' action which selects a specific model from the list of models, and In that table, editing ideal. A quick-editing of types

  & lt; Tbody & gt; {{#each}} & lt; Tr square = "people-list" & gt; & Lt; TD & gt; & Lt; Input type = "checkbox" class = "toggle" & gt; & Lt; Label class = "category-text" & gt; {{# LinkTo 'category'}} {{name}} {{/ linkTo}} & lt; / Label & gt; & Lt; Img class = "table-img" src = "picture / x.png" & gt; & Lt; Img class = "table-img" {{action 'edit}' src = "picture / pencil-gray page" & gt; & Lt; / TD & gt; & Lt; / TR & gt; {{/ Every}} & lt; / Tbody & gt; By clicking on {{action} 'edit'}}, {{name}} is created and gets editable input. All this is done without leaving the 'categories' url.  

Thanks guys: D

  & lt; Tbody & gt; {{#each}} & lt; Tr square = "people-list" & gt; & Lt; TD & gt; & Lt; Input type = "checkbox" class = "toggle" & gt; {{#if} edit}} {{input type = "text" manbanging = "name" name = "name"}} {{else}} < Label class = "category-text" & gt; {{# LinkTo 'category' this}} {{name}} {{/ linkTo}} & lt; / Labels & gt; {{/ If}} & lt; Img class = "table-img" src = "picture / x.png" & gt; & Lt; Img class = "table-img" {{action 'edit}' src = "picture / pencil-gray page" & gt; & Lt; / TD & gt; & Lt; / TR & gt; {{/ Every}} & lt; / Tbody & gt;  

and then on the controller:

  Actions: {edit: function () {this.set ('isEdit', true); }}  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -