Results 1 to 2 of 2

Thread: Trigger Drag drop event with onclick

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default Trigger Drag drop event with onclick

    I'm changing an existing ExtJS application to work on the iPad... I'm quite a ExtJS n00b..

    Currently (with a drag drop) you can drag from a tree and drop it in the list. Which triggers an event. This works fine.

    Since drag-drop doesn't work on iPad I want a click event to trigger the drop event.

    var ns = Ext.namespace("HUB.Plugins.Event");
    ns.ScheduleListManager = Ext.extend(Object, {
    ...
    onEventDrop : function(dz, target, data) {
    }

    I thought I could trigger it with:

    var ns = Ext.namespace("HUB.Plugins.Event");
    ns.ScheduleListManager.onEventDrop(dz, target, data);

    But this doesn't work...

    How can I achieve this?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,390
    Vote Rating
    498
      0  

    Default

    Have a look at fireEvent()

    Regards,
    Scott.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •