Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.08 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.08 KB

knockout-datatables

A simple Knockout binding for Datatables.

Dependencies

JQuery, DataTables and Knockout.

Usage

Example JSFiddle

A DataTables options object must be passed to the binding with 3 required properties:

  1. "data" property as a knockout ObservableArray

  2. "columns" property, each containing a "title" and "data"

  3. 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.