A simple Knockout binding for Datatables.
JQuery, DataTables and Knockout.
A DataTables options object must be passed to the binding with 3 required properties:
-
"data" property as a knockout ObservableArray
-
A "uniqueKey" property (not a part of DataTables) that is the property name for a unique value in each data object. It is fine to omit this if you don't plan to delete data from the datasource.
Also, this binding does not support the ajax option of DataTables because all data retreival and persistance should be handled by Knockout.