Skip to content

sgtHoloToaster/datatables-knockout-binding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datatables-knockout-binding

Knockout.js binding for jQuery Datatables.

Installation

Using npm

npm install datatables-knockout-binding

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 properties of the array element

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

This is it! Just like the standard knockout foreach binding.

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

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

About

Knockout.js binding for jQuery Datatables.

Resources

License

Stars

Watchers

Forks

Packages

No packages published