success callback after knockout.js finishes rendering all the elements

后端 未结 8 1170
你的背包
你的背包 2020-12-01 04:39

I have implemented a knockout foreach binding, with multiple templates in the same page, one of the example is given here, what I am interested is in finding out when a bloc

8条回答
  •  萌比男神i
    2020-12-01 04:59

    The solution above works great. Additionally, if you need to use the foreach "as" option you can do it as so:

    data-bind="foreach: { data: myItems, afterRender: renderedHandlet, as: 'myItem'}">
    

提交回复
热议问题