Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sorting items inside grid list angular 2 material issue #60

Closed
eslammahgoub opened this issue Oct 24, 2017 · 4 comments
Closed

Sorting items inside grid list angular 2 material issue #60

eslammahgoub opened this issue Oct 24, 2017 · 4 comments

Comments

@eslammahgoub
Copy link

eslammahgoub commented Oct 24, 2017

I'm using angular 2 material and I had case of sorting items in grid list here, there are Array of Categories and every 3 categories in one row in grid I'm using options of { sort: true, animation: 100 }; the item can drag but not clone or drop or sort,
any help.
Reproducing:
Plnk

@smnbbrv
Copy link
Member

smnbbrv commented Oct 24, 2017

Hi, please create a plunkr or github repo reproducing the problem

@eslammahgoub
Copy link
Author

Here is the plunkr Plnk

@smnbbrv
Copy link
Member

smnbbrv commented Oct 24, 2017

Hi @eslammahgoub

I think the reason is that mat-grid-list is wrapping a children content into some div. Sortable is taking this div and allows to sort it but the problem is that you want to sort the div content and not the div itself. I tried to apply various options from https://github.com/RubaXa/Sortable , e.g. draggable but it still does not seem to work because it expects element with [sortablejs] to be the parent of sortable children.

I couldn't manage to do that, sorry :( If you find some way to work this around or have some proposal how to fix this as a feature - please share it here

@smnbbrv
Copy link
Member

smnbbrv commented Jun 7, 2019

implemented as sortablejsContainer in 3.1.0

@smnbbrv smnbbrv closed this as completed Jun 7, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants