jQuery UI Widgets Forums Navigation Tree DragEnd error

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 8 years, 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • DragEnd error #79384

    alastairwalker
    Participant

    With reference to the demo: http://jsfiddle.net/jqwidgets/7TT7r/
    the drag end label does not show the target label on completion of the drag end event – it shows the source (drag start) label.

    This seems to be an error.

    How do I get the target label – when the drag ends?

    Alastair

    DragEnd error #79387

    Dimitar
    Participant

    Hello Alastair,

    This is not an erroneous behaviour. The target label can be retrieved in the dragEnd callback function, as in the following example: http://jsfiddle.net/Dimitar_jQWidgets/4vwjvspm/.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    DragEnd error #79390

    alastairwalker
    Participant

    Ok – the example provided above works. Still, the demo version (in first note) does not work as expected.

    Alastair

    DragEnd error #79429

    Dimitar
    Participant

    Hi Alastair,

    Please note that the event dragEnd (from the first example) and the callback function dragEnd (from the second example) are different things. The event gives information only about the dropped item and the callback – both about the dropped item and the item it was dropped to (the target).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.