3

I am working on a Angular6 Project and I need to use gridstack.js, how should I use it in this version of project

I have checked libraries like gridster but they don't support nesting functionality.

I need the same functionality as being provided by gridstack with nesting support as well.Need help?

vishal
  • 137
  • 1
  • 7

2 Answers2

7

UPDATE: As of this week (29 Nov 2020), Gridstack is now jQuery-free!

Gridstack still (as of March 2020) uses jQuery, which as it manipulates the DOM directly goes against the declarative approach of Angular. As @Adrian points out, while not impossible to achiveve, it may be worth avoiding until others are complete work on dropping jQuery from Gridstack.

In the meantime there are other non-jQuery packages that achieve the same goal:

There may be others using Gridster2 that I have not come across, but you can check out a range of approaches here: https://angularscript.com/category/layout/

Mike Goodstadt
  • 345
  • 3
  • 12
0

Don't, gridstack is a jQuery plugin and including jQuery in an Angular project is breaking rule number one.

Adrian Brand
  • 20,384
  • 4
  • 39
  • 60