feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
915 stars 386 forks source link

[Question] When item renderer drag&drop wil be released? #1765

Closed subdan closed 5 years ago

subdan commented 5 years ago

Hello, Josh. When will you finish working on a drag&drop for List and ItemRenderer? I need this feature for my app.

joshtynjala commented 5 years ago

It should be usable now. The 4.0 release will be closer to the end of the year. If all goes well, there should beta build by the end of November.

subdan commented 5 years ago

Do you have an examples of how to use drag&drop with ItemRenderer?

joshtynjala commented 5 years ago

At the most basic, set dragEnabled and dropEnabled both to true on the List, and provide a dropIndicatorSkin. You will be able to drag and drop by dragging any item renderer automatically.

If you're using DefaultListItemRenderer, and you're on mobile, you should provide a dragIcon. When DefaultListItemRenderer has a dragIcon, only the icon will be able to start a drag rather than the entire item renderer.

I recently added drag and drop to the Todos example, so if you want to see some example code, that's probably the best place right now. It uses a custom item renderer based on LayoutGroupListItemRenderer instead of DefaultListItemRenderer, but you should at least be able to see how dragEnabled and dropEnabled can be used.

subdan commented 5 years ago

Thanks, Josh.