Skip to content
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

Add option to add_widget() to not append node #238

Closed
jhpedemonte opened this issue Sep 30, 2015 · 2 comments
Closed

Add option to add_widget() to not append node #238

jhpedemonte opened this issue Sep 30, 2015 · 2 comments

Comments

@jhpedemonte
Copy link

To go along with issue #216 and the current impl of remove_widget, the function add_widget should have an option to skip the call to append(). This will allow us to use gridstack in a situation where the DOM nodes are already in place and we don't want gridstack to move or destroy existing nodes.

@jhpedemonte jhpedemonte changed the title Add option to add_widget to not append node Add option to add_widget() to not append node Sep 30, 2015
@troolee troolee closed this as completed Feb 11, 2016
@karellm
Copy link

karellm commented Aug 25, 2016

Is there a reason this was closed @troolee ? I would really like that option, in our current implementation we are forced to overwrite addWidget which is quite hacky. Thanks!

@troolee
Copy link
Member

troolee commented Aug 25, 2016

Hi @karellm

method makeWidget has been added for that purpose https://github.com/troolee/gridstack.js/tree/master/doc#makewidgetel

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

No branches or pull requests

3 participants