drag-and-drop

jquery ui get id of droppable element, when dropped an item

你离开我真会死。 提交于 2020-01-09 06:05:13
问题 How we get the id of droppable element, when dropped an item? Here i use jquery ui and asp.net mvc. <table id="droppable"> <tr> <td style="width:300px;height:50px">Backlog</td> <td style="width:300px;height:50px">Ready</td> <td style="width:300px;height:50px">Working</td> <td style="width:300px;height:50px">Complete</td> <td style="width:300px;height:50px">Archive</td> </tr> <tr id="cart"> <td id="BackLog" class="drag" style="width:120px;height:50px;"> <img class="draggable" id="1234" src="..

How do I drag multiple elements at once with JavaScript or jQuery?

限于喜欢 提交于 2020-01-08 17:16:13
问题 I want to be able to drag a group of elements with jQuery, like if I selected and dragged multiple icons on the Windows desktop. I found the demo of threedubmedia's jQuery.event.drag : http://threedubmedia.com/code/event/drag/demo/multi http://threedubmedia.com/code/event/drag#demos I think this plugin is great. Is this good and popular library? Do you know websites or applications which use it? Are there any other libraries or plugins to drag multiple objects? Can jQuery UI drag multiple

d3js zoom + drag causes conflict

試著忘記壹切 提交于 2020-01-06 18:42:27
问题 I am trying to apply the zoom behaviour to a svg where certain elements in the svg are already bound with drag behaviour. without the zoom behaviour drag works fine, without the drag behaviour zoom works fine. When I have both of them it conflicts. When I drag a circle all the other circles starts to drag with it. Here is the fiddle. can anyone help me to figure out the issue? <svg height="600" width="600" style="background: black"> <g> <rect x="0" y="0" , width="600" height="40" style="fill

d3js zoom + drag causes conflict

青春壹個敷衍的年華 提交于 2020-01-06 18:41:26
问题 I am trying to apply the zoom behaviour to a svg where certain elements in the svg are already bound with drag behaviour. without the zoom behaviour drag works fine, without the drag behaviour zoom works fine. When I have both of them it conflicts. When I drag a circle all the other circles starts to drag with it. Here is the fiddle. can anyone help me to figure out the issue? <svg height="600" width="600" style="background: black"> <g> <rect x="0" y="0" , width="600" height="40" style="fill

Android - ListView using onItemClick and onTouch

旧城冷巷雨未停 提交于 2020-01-06 18:14:03
问题 I try to implement something like a "drag and drop" for a ListView. The task is simple. I have a "side menu" where I put some objects in a list. They are all shown there. What I want is to drag and drop one of them to the screen. I first tried to use the OnTouchListener which offers me the drag&drop functionality I seek. So I do something like @Override public boolean onTouch(View view, MotionEvent movEv) { if (movEv.getAction() == MotionEvent.ACTION_DOWN) // DRAG else if (movEv.getAction() =

Android - ListView using onItemClick and onTouch

ⅰ亾dé卋堺 提交于 2020-01-06 18:13:41
问题 I try to implement something like a "drag and drop" for a ListView. The task is simple. I have a "side menu" where I put some objects in a list. They are all shown there. What I want is to drag and drop one of them to the screen. I first tried to use the OnTouchListener which offers me the drag&drop functionality I seek. So I do something like @Override public boolean onTouch(View view, MotionEvent movEv) { if (movEv.getAction() == MotionEvent.ACTION_DOWN) // DRAG else if (movEv.getAction() =

Drag Drop and Reorder elements in ListView

心已入冬 提交于 2020-01-06 16:48:25
问题 I'm following this library to add drag - drop functionality my listview. Everything is fine when moving first item to second place. But when I move the listview first element to third place app crashes. In order to explain my situation I've added image. All I think it is caused at Swap items line but i think my code right. When I try to replace first item to third item, app is crashing. Any help will be valuable for me. Thanks for helpings. Here is my adapter code. public class

Drag Drop and Reorder elements in ListView

痴心易碎 提交于 2020-01-06 16:48:23
问题 I'm following this library to add drag - drop functionality my listview. Everything is fine when moving first item to second place. But when I move the listview first element to third place app crashes. In order to explain my situation I've added image. All I think it is caused at Swap items line but i think my code right. When I try to replace first item to third item, app is crashing. Any help will be valuable for me. Thanks for helpings. Here is my adapter code. public class

Drag and drop item renderer(panel) within list

徘徊边缘 提交于 2020-01-06 05:40:07
问题 I have a spark List,its item renderer is a panel,and in the panel there are some components such as Textinput,now I want to drag and drop a panel within the List,how can I do that,could you pls show me the code,thanks. 回答1: The list in flex has a default drag and drop functionality. So basically all you need to do is to set 3 properties to true to your list: dragMoveEnabled , dragEnabled and dropEnabled . So your list if you add it from mxml will look like this: <s:List dataProvider="

QML: Dynamic view re-ordering in original model

霸气de小男生 提交于 2020-01-06 04:29:06
问题 Implemented QML Dynamic View Ordering by Dragging View Items using this Qt tutorial: QML Dynamic View Ordering Tutorial. Original underlying model is QAbstractListModel descendant in our case. Model stores data in a QList<QObject*> objectList; field type. Works fine, however item ordering changed in proxy DelegateModel only. How to change items order automatically in original underlying model as well for other C++ and QML consumers where order matters? Or I could we otherway access some