Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

jquery_wrapper.js 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Tabulator v4.6.3 (c) Oliver Folkerd */
  2. /*
  3. * This file is part of the Tabulator package.
  4. *
  5. * (c) Oliver Folkerd <oliver.folkerd@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. *
  10. * Full Documentation & Demos can be found at: http://olifolkerd.github.io/tabulator/
  11. *
  12. */
  13. (function (factory) {
  14. "use strict";
  15. if (typeof define === 'function' && define.amd) {
  16. define(['jquery', 'tabulator', 'jquery-ui'], factory);
  17. } else if (typeof module !== 'undefined' && module.exports) {
  18. module.exports = factory(require('jquery'), require('tabulator'), require('jquery-ui'));
  19. } else {
  20. factory(jQuery, Tabulator);
  21. }
  22. })(function ($, Tabulator) {
  23. $.widget("ui.tabulator", {
  24. _create: function _create() {
  25. var options = Object.assign({}, this.options);
  26. delete options.create;
  27. delete options.disabled;
  28. this.table = new Tabulator(this.element[0], options);
  29. //map tabulator functions to jquery wrapper
  30. for (var key in Tabulator.prototype) {
  31. if (typeof Tabulator.prototype[key] === "function" && key.charAt(0) !== "_") {
  32. this[key] = this.table[key].bind(this.table);
  33. }
  34. }
  35. },
  36. _setOption: function _setOption(option, value) {
  37. console.error("Tabulator jQuery wrapper does not support setting options after the table has been instantiated");
  38. },
  39. _destroy: function _destroy(option, value) {
  40. this.table.destroy();
  41. }
  42. });
  43. });