Edit item in knockout observableArray

前端 未结 3 2021
野性不改
野性不改 2021-01-24 23:53

I am looking for an example where i can show an observableArray as normal text with edit / delete links. Items can be added/edited from a separate form. I am not able to edit t

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-25 00:43

    Not completely sure what you are asking but if you are wanting to put the values back into the edit boxes then try this:

    self.editItem = function (p) {
        self.FirstName(p.FirstName);
    };
    

    Will then just have to write your logic to check if it already exists

提交回复
热议问题