In Konvajs after drag and drop if i update the position of the node .Its not moving to new location instead staying in same drop location - konvajs

I have node(text/rectangle) with draggable=true.
Trying to drag and drop to a another possition
After drop event i am updating the position via my varriable(vue reactive varriable) .The data were updated .
But the object(node) not moving to my new location .It always in same dropped postion.
Can you provide your input on this .
I acheived in a two way
Option 1- On drop i just cleared the shape cached
Option 2- On drop i just cleared reactive array(variable) after nexttick/time i pushed the data again
Is there any other way to resolve this issue. ?

Related

How do I change the stacking order of objects in Xcode 6?

In my projects when I forget to add something in the Main Storyboard, I always have to redo the entire thing if I want to change the "layer order." For example, if I want to add an Image View (with full screen constraints) as the background after I've already some other elements, it will cover them. How do I change the "layer" that each element is on without deleting and remaking them? Thanks.
Click on the element you want to arrange, hit Editor > Arrange > Send to Back (or send backward depending on how you want to arrange it)

Drag & Drop Issue Kendo UI Web TreeView In ASP MVC

I have an issue in kendo treeView. I am doing validation in kendo treeview when the user drags and drop a node by using dragstart, dragend, drop events.
Issue is, I need to maintain unique node names in every level. when user drop a node then I am checking the selected node with the destination node details by using following function-
var destNode = this.dataItem(e.destinationNode);
if the user moves the node one level up then e.destinationNode giving the neighbhour node details based on the I not able to maintain uniqueness. This is the issue.
Is there any property to disable move option, I should continue only drag and drop.
Thanks in Advance....
You can e.preventDefault inside the drop event if your condition is not satisfied when you want to cancel the drop. You can find more info here

draw a icon on Treeview node on mouseover, when clicked display popup menu

using delphi ex-5
as of now, I can display the popupmenu on right click of a selected node
is it possible to display a icon on a treeview node (right side) on a moveover? When the icon is moused over, display a popupmenu?
thanx
EDIT: Inclusion of two screenshots to better convey my need (Yes, this was taken forom a webpage - it is what I am trying to do)
https://dl.dropboxusercontent.com/u/73677254/Delphi%20Demos/screenshot1.png
https://dl.dropboxusercontent.com/u/73677254/Delphi%20Demos/screenshot2.png
If you want the icon on the left side, you can use the TTreeNode.StateIndex property. But to put an icon on the right side, you have to owner-draw the TTreeView nodes instead.
Either way, use the TTreeView.OnMouseMove event to keep track of which node is currently under the mouse at all times, and when you detect a different node then you can reset the StateIndex of the previous node and update the StateIndex of the new node, or trigger a repaint and draw the icon only on the new node, depending on which approach you take.

drag and drop without moving the element

Hi am using drag and drop from Jquery, and what I want to try and simulate is the drag and drop except during the drag motion I don't want the element to actually move from its place.
In the example here : http://jsfiddle.net/2LN5G/ when you drag the "Drag me to target" it is moved from the possition and reverts back when it is dropped. I want to still show "Drag me to target in the current position and still show the "Drag me to target" moving with the cursor. Is this possible ?
Take a look at the visual feedback example on jQueryUI.com.
Basically, you want to specify the helper option when calling the .draggable() method.
$(".draggable").draggable({
helper: "clone"
});

FF addon toolbar, how do you allow items to be dragged onto it?

FF addon toolbar, how do you allow items to be dragged onto it?
You should read the Drag and drop documentation.
Basically you have to listen to the dragenter event:
dragenter
Fired when the mouse is first moved over an element while a drag is occuring. A listener for this event should indicate whether a drop is allowed over this location. If there are no listeners, or the listeners perform no operations, then a drop is not allowed by default. This is also the event to listen to if you want to provide feedback that a drop is allowed such as displaying a highlight or insertion marker. For information about this, see Specifying Drop Targets.
Actually the correct answer is: adding customizable="true" to the toolbar tag will allow you to drop icons onto your toolbar.

Resources