Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Fix drag drop with Gridstack 0.4.0 #320

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fx-kirin
Copy link

@fx-kirin fx-kirin commented Apr 1, 2019

Hi. Thank you for great plugin. I'm really in to it.

The development here is inactive and not following current Jupyter project. That's sad to me. So I'm trying to make it work with the latest version of Jupyter notebook for several days. As I don't know much about Javascript, nodejs and requirejs, I want a help to fix something odd if they exist.

I started from here. #317

Added gridstack.jQuery.js

First, I tried to load gridstack.jQueryUI.js in dashboard-view.js with requirejs. I followed the instruction of the gridstack.js's README. It said I should follow the stackoverflow answer.

https://stackoverflow.com/questions/35582945/redundant-dependencies-with-requirejs

After that, to load the file, I modified gridstack-custom.js to insert gridstack.jqueryui to define method. But I don't know this is the right way to do it.

Use not compiled js file.

There is a bug not only in jupyter-dashboard plugin but also in gridstack.js because I was having registerPlugin of undefined' error when I loaded gridstack.jQueryUI.js with gridstack.min.js. But it works with gridstack.js.

It seems GridStackUI variable is not currently being well handled.

gridstack/gridstack.js#975

Currently, it seems like working well. Please let me know something to be done.

parente and others added 3 commits August 30, 2018 22:23
Notebook 5.6 moved to jQuery 3.x. Gridstack needs an upgrade
to work with that version. Jumping to GS 0.4 breaks a lot of
stuff. The changes here get things limping along, but drag/drop
in layout mode is still broken.
@jstewart37
Copy link

Hi, I was wondering if you have any idea if this may be merged soon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants