<commit_before># knockout-datatables
A simple Knockout binding for Datatables.

## Dependencies
[JQuery](https://jquery.com/download/), [DataTables](https://datatables.net/download/index) and [Knockout](http://knockoutjs.com/downloads/index.html).

## Usage
[Example JSFiddle](https://jsfiddle.net/kL6k54ex/37/)

A [DataTables options object](https://datatables.net/reference/option/) must be passed to the binding with 3 required properties: 

  1. ["data"](https://datatables.net/reference/option/data) property as a json array or knockout object array
  
  2. ["columns"](https://datatables.net/reference/option/columns) property, each containing a ["title"](https://datatables.net/reference/option/columns.title) and ["data"](https://datatables.net/reference/option/columns.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.<commit_msg>Updated README - JSON arrays are not accepted!!<commit_after># knockout-datatables
A simple Knockout binding for Datatables.

## Dependencies
[JQuery](https://jquery.com/download/), [DataTables](https://datatables.net/download/index) and [Knockout](http://knockoutjs.com/downloads/index.html).

## Usage
[Example JSFiddle](https://jsfiddle.net/kL6k54ex/37/)

A [DataTables options object](https://datatables.net/reference/option/) must be passed to the binding with 3 required properties: 

  1. ["data"](https://datatables.net/reference/option/data) property as a knockout ObservableArray
  
  2. ["columns"](https://datatables.net/reference/option/columns) property, each containing a ["title"](https://datatables.net/reference/option/columns.title) and ["data"](https://datatables.net/reference/option/columns.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.
{'fraction_non_alphanumeric': 0.11670281995661605, 'fraction_numerical': 0.0078091106290672455, 'mean_word_length': 4.837974683544304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '276652', 'n_tokens_mistral': 698, 'n_tokens_neox': 655, 'n_words': 221}