datatables-knockout-binding

0.0.3 • Public • Published

datatables-knockout-binding

The Knockout.js binding for jQuery Datatables.

Usage

Just add the 'datatable' binding to your table body along with your array

<tbody data-bind="datatable: someArray">  
  ...  

now inside of the table body you can use the properties of the array element

  <tr>  
    <td data-bind="text: someProperty"></td>  
      ...

This is it! Just like an ordinary knockout foreach binding.

If you need to specify Datatables options, then just add the tableOptions binding:

<tbody data-bind="datatable: someArray, tableOptions: { paging: false }">
  ...

Installation

Using npm

npm install datatables-knockout-binding

Package Sidebar

Install

npm i datatables-knockout-binding

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

10.6 kB

Total Files

5

Last publish

Collaborators

  • sgtholotoaster