Skip to content

update(el, opts) re-write to take all options#1490

Merged
adumesny merged 1 commit into
gridstack:developfrom
adumesny:develop
Nov 28, 2020
Merged

update(el, opts) re-write to take all options#1490
adumesny merged 1 commit into
gridstack:developfrom
adumesny:develop

Conversation

@adumesny

Copy link
Copy Markdown
Member

Description

  • fix update() should also take the options object #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)

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* 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)
@adumesny adumesny merged commit f5b4292 into gridstack:develop Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update() should also take the options object

1 participant