Highlight selected row using knockout

前端 未结 2 1598
说谎
说谎 2021-01-24 20:50

With reference to below question asked in stackoverflow

Display clicked item

I have modified the fiddle created by john papa. Here is my updated fiddle

2条回答
  •  终归单人心
    2021-01-24 21:04

    Just trivial bug

    this.NewDetail = function(){
            var item = new Thing(4, "Thing 4", self.model.CurrentDisplayThing);
            self.model.Things.push(item);
            self.model.CurrentDisplayThing(item);
          };
    

提交回复
热议问题