Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82257

Add an option to not update cell innerHtml on row invalidation

$
0
0

When we integrate DataTables with a binding framework like Angular or Knockout the cell html will be updated automatically when the data changes.

When we only bind a value to the cell, innerHtml will not break the binding so everything is ok so far. The problem arises when we bind a template to a cell where we have nested html elements and each element has its own binding. Setting innerHtml in this case breaks all bindings as the dom elements are recreated.

Problematic line: https://github.com/DataTables/DataTables/blob/master/media/js/jquery.dataTables.js#L1437


Viewing all articles
Browse latest Browse all 82257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>