Skip to content

Conversation

@adumesny
Copy link
Member

Description

  • add GridStack.setupDragIn() so user can update external
    draggable after the grid has been created.
  • you can pass in new selector and options, else it uses the grid last option values.
    (called on during init() but may be needed when items change dynamically).
  • safe to call multiple times and on already draggable items
  • fix Dynamically Added DND Items not picked up GridStack Init #1637

Checklist

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

* add `GridStack.setupDragIn()` so user can update external
draggable after the grid has been created.
* you can pass in new selector and options, else it uses the grid last option values.
(called on during init() but may be needed when items change dynamically).
* safe to call multiple times and on already draggable items
* fix gridstack#1637
@adumesny adumesny merged commit e28456f into gridstack:develop Feb 26, 2021
@adumesny adumesny changed the title grid.setupDragIn() GridStack.setupDragIn() Feb 26, 2021
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.

Dynamically Added DND Items not picked up GridStack Init

1 participant