nicolaskruchten / pivottable

Open-source Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.
https://pivottable.js.org/
MIT License
4.33k stars 1.07k forks source link

Compatibility with JQuery 3 #1330

Open Rizzelthon opened 1 year ago

Rizzelthon commented 1 year ago

I've an application with Jquery 3.1.1 .

When loading the last release of pivottable there is this error:

$.pivotUtilities. -> $ is undefined

....
WidgetPivotTable.prototype.updateTableInt = function ()
{
  // Not now
  if (this.lockUpdate || !this.pivotData)
    return;
  //
  // Find real aggregator name in actual locale
  let an = this.aggregatorName;
  let aidx = Object.keys($.pivotUtilities.aggregators).indexOf(an);

....

Is this component compatible with the latest version of jquery?

dpierangeli commented 1 year ago

I've the same problem.

mpf82 commented 1 year ago

Runs with 3.4.1 - https://jsfiddle.net/Lsf9451d/

Created from the official demo: https://jsfiddle.net/nicolaskruchten/kn381h7s/