Dragging multiple items with use-gesture - react-use-gesture

https://codesandbox.io/s/react-use-gesture-simple-vfrw4
https://use-gesture.netlify.app/docs/gestures/
Read the documentations and there doesn't seem to be any way to select two items and drag them at the same time. I tried with React-DND and after trying it didn't work because the hook didn't allow you to select more than one item when dragging even if you had several elements selected. It seems like it's the same thing with use-gesture.

Related

How to implement backpack UI in Unity

I want to make a backpack UI that can dynamically add and delete items like a menu, but every item in it is a picture (not a text)
I found many tutorials but all of them are panels with slots that need I to set their positions previously. I wonder if there is a better way to make it more easily.
I think the best way is to use a Vertical Layout Group:
https://docs.unity3d.com/Packages/com.unity.ugui#1.0/manual/script-VerticalLayoutGroup.html
Obviously for adding and deleting in player, you have to create buttons with relative scripts.

SAP UI5 : MultiCombobox selected values should appear in vertical fashion

For my multicombobox, I need all the selected values to appear vertically rather than horizontally as it is hard to see all the selected values at once if there are more than 3-4 selections.
With one of the latest releases of UI5, a "n-more" feature was introduced in the MultiComboBox. It could be seen here. Add several items from the MCB and focus out.
I guess that this should be fine for you to see the selection no matter how much items you have at all. On the mobile view you can toggle the button next to the input field in the dialog in order to see all selected items.

wxPython TreeCtrl - Dragging multiple items

Dragging multiple items in wx.TreeCtrl does not seem to work. I'm trying to use this example https://wiki.wxpython.org/DragAndDropWithFolderMovingAndRearranging with the tree set to wx.TR_MULTIPLE. Even if multiple items are selected, only one gets dragged.
In the TODO list at the top, it says
add support for multiple selection / moving multiple items (should be easy)
What would be the best way to implement this so that it works for multiple items exactly the same way as for a single item?

Can you turn subsets of slides into a custom component in Ionic 3+?

I have tried to create custom components which are subsets of slides. I'm trying to create a custom Ionic component which is a subset of slides. Then I can mix and match subsets of slides in one to make a complete slide show. Like building a master process from sub-processes. You should be able to swipe back and forth between all slides as expected, no matter an directly in the component, or slides within custom components.
I've tried various methods to no avail. Any ideas?
PLEASE SEE THIS SAMPLE PROJECT WITH 2 METHODS I HAVE TRIED TO ACCOMPLISH THIS.
No. You can't do this. You can put a into another if one scrolls vertically and one horizontally. You can insert a custom component into an which just has a couple slides in it, put the inserted slides show one over the other vertically with no way to swipe back and forth. So, no. You can't do this. Perhaps with dynamic templates you can build the from code dynamically. That's the only work around I can see.

How can I change a ViewController list (by changing predicate) without popping and pushing?

I have a ViewController whose view results from data from a fetch request with Predicate 1. I'd like to repeat the fetch request with a more restrictive Predicate 2 that will give a SUBSET of the data using Predicate 1.
Then I'd like to update (and possibly animate) that view on the iPhone screen by pressing a toggle button, so that the old and new views expand and collapse the rows. (I don't want to do this modally, as I'd like the user to see which rows came from the old rows.)
I'm thinking of something like the Phone application on the iPhone. Under the "Recents" tab, you'll see "All" and "Missed" buttons. When you press these buttons, it switches between showing all calls and just the missed ones by expanding/collapsing the rows. As far as I can tell, this is not a modal transition.
Can someone give me pointers as to how to do this?
If your view is a UITableView, you can use a combination of
-deleteRowsAtIndexPaths:withRowAnimation:
and
-deleteSections:withRowAnimation:
as well as the corresponding -insert methods, if applicable. You can batch multiple changes (so they animate at the same time) with -beginUpdates and -endUpdates.
I'm not aware of any way you'll be able to do this that doesn't involve iterating over one of the two sets and repeatedly calling -indexForObject on the other, though.
I found a way to expand/collapse rows by changing the heights of each cell, using tableView:heightForRowsAtIndexPath:indexPath:, as in:
http://www.alexandre-gomes.com/?p=482
Hope that's helpful to someone!