15 if (typeof define ===
'function' && define.amd) {
16 define([
'jquery',
'tabulator',
'jquery-ui'], factory);
18 else if(typeof module !==
'undefined' && module.exports) {
19 module.exports = factory(
26 factory(jQuery, Tabulator);
28 }(
function ($, Tabulator) {
30 $.widget(
"ui.tabulator", {
32 var options = Object.assign({}, this.options);
34 delete options.create;
35 delete options.disabled;
37 this.table =
new Tabulator(this.element[0], options);
40 for(var key in Tabulator.prototype){
41 if(typeof Tabulator.prototype[key] ===
"function" && key.charAt(0) !==
"_"){
42 this[key] = this.table[key].bind(this.table);
47 _setOption:
function(option, value){
48 console.error(
"Tabulator jQuery wrapper does not support setting options after the table has been instantiated");
51 _destroy:
function(option, value){