Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adding drag and drop behaviour on the fly.

0 views
Skip to first unread message

Artemm

unread,
Nov 18, 2009, 8:34:36 PM11/18/09
to
Hello.

I'm adding toolbarbuttons on palette dinamically and want them to
support drag and drop. All works just fine when I use static buttons
with draggesture attribute. But I did not succeed in adding it
dinamically after document.createElement("toolbarbutton"); I read
previous posts regarding adding event on parent container object and
then determine where user clicked on but this doesn't look as best
approach. So is there any way to add this draggesture handler
dynamically?

Thanks, Artem.

Artemm

unread,
Nov 19, 2009, 10:58:01 AM11/19/09
to
solved.
btn.addEventListener("draggesture", function (event) {
nsDragAndDrop.startDrag(event, listObserver)
}, false);
0 new messages