-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update() should also take the options object #1235
Labels
Comments
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
Nov 28, 2020
* fix gridstack#1235 * `update(el, opts)` re-write to take all `GridStackWidget` options (not just x,y,width,height) and do everything efficiently. * Fixed `locked()`, `move()`, `resize()`, `minWidth()`,etc... to call update() instead which does all the constrain, not just update attributes! * update spec to test, and serialize demo to show improved feature * OLD api to pass 4 params will work for now (console warning)
3 tasks
in upcoming 3.0 release! |
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
Nov 29, 2020
more for fix gridstack#1235 * moved the old individual routines to be hidden as update() does everything now * updated doc which I forgot on last check in * removed some old 0.5/0.6 backward compatible checks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
Currently, update() only takes a few positional option params. Just like addWidget(),
update()
should take an options object containing anyitem
option.Your environment
n/a
Steps to reproduce
n/a
Expected behaviour
n/a
Actual behaviour
n/a
The text was updated successfully, but these errors were encountered: