Get dynamically inserted HTML to work with knockoutjs

后端 未结 1 1369
终归单人心
终归单人心 2020-12-05 04:02

I\'m using JQuery DataTables for all my tables because of all the nice built-in features, but it seems the only way to customize the table layout is to set the \"sDom\" opti

相关标签:
1条回答
  • 2020-12-05 04:56

    You have to call this function after insert dynamic HTML element

    ko.applyBindings(viewModel, elementContainingDynamicContent)

    Example here http://jsfiddle.net/rniemeyer/FCN5p/

    0 讨论(0)
提交回复
热议问题