18 if (typeof define ===
'function' && define.amd) {
19 define([
'jquery',
'tabulator',
'jquery-ui'], factory);
20 }
else if (typeof module !==
'undefined' && module.exports) {
21 module.exports = factory(require(
'jquery'), require(
'tabulator'), require(
'jquery-ui'));
23 factory(jQuery, Tabulator);
25 })(
function ($, Tabulator) {
27 $.widget(
"ui.tabulator", {
28 _create:
function _create() {
29 var options = Object.assign({}, this.options);
31 delete options.create;
32 delete options.disabled;
34 this.table =
new Tabulator(this.element[0], options);
37 for (var key in Tabulator.prototype) {
38 if (typeof Tabulator.prototype[key] ===
"function" && key.charAt(0) !==
"_") {
39 this[key] = this.table[key].bind(this.table);
44 _setOption:
function _setOption(option, value) {
45 console.error(
"Tabulator jQuery wrapper does not support setting options after the table has been instantiated");
48 _destroy:
function _destroy(option, value) {