Skip to content

Instantly share code, notes, and snippets.

@davidthingsaker
davidthingsaker / datatables.js
Last active March 17, 2016 15:31
Datatables class
function Datatable(table){
this.table = table;
this.dataKeys = $(this.table).data('columns');
this.buildDatatable();
}
Datatable.prototype.options = function(){
var options = {};
options.table = $(this.table).data('model');
options.scope = $(this.table).data('scope');