drag-and-drop

Angular Material Nested Drag and Drop

可紊 提交于 2020-02-01 03:19:07
问题 I'm trying to achieve a reorder-able group of list which contain elements that can be moved between lists, using @angular/cdk/drag-drop, although I'm running into a few problems. I've managed to separately create individual examples which achieve the individual drag and drop, although when brought together it seems I cannot achieve both pieces of functionality in parallel. Moving items between groups : https://stackblitz.com/edit/items-move Reordering groups : https://stackblitz.com/edit

How can i enable Drag & Drop in Highcharts organization-charts?

余生长醉 提交于 2020-01-30 11:56:30
问题 I need to set up a Highcharts chart of type "organization" which should support Drag & Drop the Nodes on each other (to move the nodes inside the tree). Currently, I got an "organization" chart which displays all the needed information. I tried to use the Highcharts.plotOptions.series.dragDrop -Events but that wasn't working at all. I also tried to use Highcharts.series[organization].dataLabels.nodeFormatter -Callback to replace the outer div by a div with attributes: draggable="true"

Dropping a file from outside an application into QTableView

☆樱花仙子☆ 提交于 2020-01-30 11:56:26
问题 I have a QTableView and I'd like to be able to drop an image file from outside the application onto a row and upon this event it needs to identify which row it was dropped on, do things with the file (copy to a directory, resize, add to db, ...) and finally update a column in the table that this item/row now has an image file associated to it. I've figured out that I can inherit from e.g. QTableView, re-implement dropEvent(QDropEvent*), I could then call QDropEvent::pos() inside the member

How can i enable Drag & Drop in Highcharts organization-charts?

陌路散爱 提交于 2020-01-30 11:56:14
问题 I need to set up a Highcharts chart of type "organization" which should support Drag & Drop the Nodes on each other (to move the nodes inside the tree). Currently, I got an "organization" chart which displays all the needed information. I tried to use the Highcharts.plotOptions.series.dragDrop -Events but that wasn't working at all. I also tried to use Highcharts.series[organization].dataLabels.nodeFormatter -Callback to replace the outer div by a div with attributes: draggable="true"

How can i enable Drag & Drop in Highcharts organization-charts?

送分小仙女□ 提交于 2020-01-30 11:56:06
问题 I need to set up a Highcharts chart of type "organization" which should support Drag & Drop the Nodes on each other (to move the nodes inside the tree). Currently, I got an "organization" chart which displays all the needed information. I tried to use the Highcharts.plotOptions.series.dragDrop -Events but that wasn't working at all. I also tried to use Highcharts.series[organization].dataLabels.nodeFormatter -Callback to replace the outer div by a div with attributes: draggable="true"

DoDragDrop disables MouseMove Events

荒凉一梦 提交于 2020-01-29 04:30:08
问题 After having started a Drag & Drop operation by DragDrop.DoDragDrop(...) no more MouseMove Events are fired. I even tried AddHandler(Window.MouseMoveEvent, new MouseEventHandler(myControl_MouseMove), true); where the last parameter means I even opt in for handled events. No chance, seems like the MouseMove Event is never fired at all! Any way to still get MouseMove Events while using Drag & Drop? I'd like to Drag & Drop a control, while dragging this control it shall follow the mouse pointer.

How to validate content editable paragaraph

て烟熏妆下的殇ゞ 提交于 2020-01-25 06:49:12
问题 I'm using JQuery UI draggable option to drag and drop components to content editable paragraph.My code as follows, My code as follows: $(function() { function textWrapper(str, sp, btn) { if (sp == undefined) { sp = [0, 0]; } var txt = ""; if (btn) { txt = "<span class='w b'>" + str + "</span>"; } else { txt = "<span class='w'>" + str + "</span>"; } if (sp[0]) { txt = " " + txt; } if (sp[1]) { txt = txt + " "; } return txt; } function chunkWords(p) { var words = p.split(" "); words[0] =

Drag Drop Operation in QTreeWidget not copying the dropped item

心不动则不痛 提交于 2020-01-25 04:15:53
问题 I want to copy an item from a QTreeWidget -parent under another parent via a drag & drop mouse operation. For this, I have implemented the dropEvent() and am setting the dropAction to Qt.CopyAction . But anyway, the item I am dropping is not being copied under the new parent. E.g. -> dragging the user "schmidt" under the group "LON". Expected behaviour: the item I am dropping is being copied under the new parent. (e.g. user "schmidt" will be added under group "LON"). Full working code example

Can we implement Drag n Drop with touch events for mobile view?

不打扰是莪最后的温柔 提交于 2020-01-25 03:54:29
问题 I am using simple HTML-5, and using Drag n Drop feature in React JS, without any library. I have implemented on web, it's working good but when i come to mobile it doesn't work. There are touch events to handle touch things for mobile but i am not achieve any solution. Please recommend some thing which works well. 回答1: There are few shim libs that emulate HTML5 drag and drop on mobile devices. Example: DragDropTouch They usually clone element that you try to drag on touchstart , copy all

IE 10: dragstart event doesn't get fired if <img> is wrapped by <a>

坚强是说给别人听的谎言 提交于 2020-01-25 00:25:28
问题 jsFiddle: http://jsfiddle.net/39she/3/ HTML: <a href="http://google.de"> <img src="https://www.google.de/images/srpr/logo4w.png" draggable="true" /> </a> JavaScript: // Please forgive me this bad-designed function ;) // quick and dirty solution function log(msg) { document.body.innerHTML = document.body.innerHTML + "<hr />" + msg; } var myImg = document.getElementsByTagName("img")[0]; myImg.addEventListener("dragstart", function(evt) { log("Drag started"); }); The log message appears in