Skip to content

Request: Access to the sortable instance #8

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

Closed
kjanoudi opened this issue Mar 13, 2016 · 1 comment
Closed

Request: Access to the sortable instance #8

kjanoudi opened this issue Mar 13, 2016 · 1 comment

Comments

@kjanoudi
Copy link
Contributor

I would like to be able to call methods on the sortable instance from inside my component, which I believe means we would need to passed in the instance as a prop.

Use case: being able to set options after the fact, based on certain conditions. For example: disabling sorting based on a toggle requires a call to sortable.set('disabled', true) which necessitates access to the sortable instance.

@cheton
Copy link
Collaborator

cheton commented Mar 13, 2016

Added to v0.7.0. Thanks for your efforts.

@cheton cheton closed this as completed Mar 13, 2016
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

2 participants