No. You can display the table (example):
DTColumnBuilder.newColumn('firstName', 'First name')
.renderWith(function (data) {
return '<input type="text" ng-model="json.firstName" />'
}),
but it is ng-model
never recognized because it is not the angular itself that renders. If you let angular render, that is, datatable="ng"
and ng-repeat
it works:
<table datatable="ng" dt-options="dtOptions" dt-columns="dtColumns">
<tr ng-repeat="item in json">
<td>{{ item.id }} </td>
<td><input ng-model="item.firstName"/></td>
<td>{{ item.lastName }} </td>
</tr>
</table>
demo → http://plnkr.co/edit/f0ycjJvsACaumY13IVUZ?p=preview
note that JSON elements are updated when you edit the input fields.
source
share