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

Usage in Vue 3 (jquery pivot() is not a function) #1309

Open zvonimir-simunovic opened 1 year ago

zvonimir-simunovic commented 1 year ago

How to use this library inside Vue 3? I Installed jquery and pivottable from npm and when I call $("#output").pivot(--settings---) it just says that pivot() is not a function for jquery.

CliffordMarley commented 1 year ago

I am facing the same problem . Somebody please help!

zvonimir-simunovic commented 1 year ago

Solved it. Install jquery and pivvottable npm packacges. Just do:

import $ from 'jquery'
import 'pivottable'

And it seems like it works. At least regular pivot table was shown.

James-moneyMaker commented 12 months ago

Solved it. Install jquery and pivvottable npm packacges. Just do:

import $ from 'jquery'
import 'pivottable'

And it seems like it works. At least regular pivot table was shown.

Hi, May I know did you success to implement it in your Vue 3 application?