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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    8
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i datatables-knockout-binding

Weekly Downloads

10

Version

0.0.3

License

MIT

Unpacked Size

10.6 kB

Total Files

5

Last publish

Collaborators

  • sgtholotoaster