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

Element Request: paper-sortable-tiles #41

Open
samccone opened this issue Sep 22, 2015 · 9 comments
Open

Element Request: paper-sortable-tiles #41

samccone opened this issue Sep 22, 2015 · 9 comments

Comments

@samccone
Copy link

Use cases:

  • When you have a grid of paper-cards, (click/touch) + drag to reorder is sometimes desirable
  • When you have a paper cards sometimes you want their order to customizable outside of your loop.

Features:

  • sort order arr
  • custom sort by attr
  • drag and drop to update sort order

Thoughts? bad idea? 😰

@addyosmani
Copy link

My first question is: is this UX pattern something currently in the Material spec, or is this something that would be useful, but isn't listed there?

@samccone
Copy link
Author

The pick-up-and-move gesture is also supported. However, consider whether it is important for the user to be able to sort cards within the collection, or if the content would be better organized using programmatic filtering or sorting.

:) :)

@notwaldorf
Copy link
Contributor

I think the MD spec actually supports the pick-and-move gesture (https://www.google.com/design/spec/components/cards.html#cards-behavior), so this isn't a bad idea. However, much like iron-swipeable-container, I don't think this feature should be limited to just paper-cards (I can see a scenario where you want to pick and move <div>s), so maybe it should be an iron-drag-and-drop-container.

Which brings us to the jar of spiders that is drag-and-drop, and me throwing the hot potato to @kevinpschaaf, who's looked at it before. TL DR: this is hard to get right and not slow and janky.

@addyosmani
Copy link

I think the MD spec actually supports the pick-and-move gesture (https://www.google.com/design/spec/components/cards.html#cards-behavior), so this isn't a bad idea.

Awesome!

so maybe it should be an iron-drag-and-drop-container.

👍 On not limiting it to cards. I can see folks wanting to pick and move arbitrary content if this is supported.

@chuckh
Copy link

chuckh commented Sep 22, 2015

so maybe it should be an iron-drag-and-drop-container.

👍 I would love to have a iron-drag-and-drop-container.

@ebidel ebidel changed the title 🍞 paper-sortable-tiles Request: paper-sortable-tiles Oct 5, 2015
@ebidel ebidel changed the title Request: paper-sortable-tiles Element Request: paper-sortable-tiles Oct 5, 2015
@zoechi
Copy link

zoechi commented Oct 21, 2015

Could this be Draggable and Droptarget behavior?

@abdonrd
Copy link
Member

abdonrd commented Oct 21, 2015

I think the MD spec actually supports the pick-and-move gesture (https://www.google.com/design/spec/components/cards.html#cards-behavior), so this isn't a bad idea. However, much like iron-swipeable-container, I don't think this feature should be limited to just paper-cards (I can see a scenario where you want to pick and move <div>s), so maybe it should be an iron-drag-and-drop-container.

Which brings us to the jar of spiders that is drag-and-drop, and me throwing the hot potato to @kevinpschaaf, who's looked at it before. TL DR: this is hard to get right and not slow and janky.

Sounds really really good!

@notwaldorf
Copy link
Contributor

As a tracking side note, iron-swipeable-container is now a thing (no drag-drop support): https://github.com/PolymerElements/iron-swipeable-container

@andrew-vdb
Copy link

http://demos.telerik.com/kendo-ui/sortable/linkedlists
for trello like user interface
or
http://demos.telerik.com/kendo-ui/sortable/sortable-panels
for dashboard (arranging google analytics widget)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants