jQuery UI Widgets Forums Lists ListBox ListBox dropTargetElement to component

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • ListBox dropTargetElement to component #104084

    mikhaa
    Participant

    Hi,

    When I implement a dragEnd event handler for a list box there is this event argument event.args.dropTargetElement. How to get the corresponding list box component instance from the dropTargetElement so that I can call the methods of the target list box component i.e. clearSelection? I need to clear selection (or possible do something else) of the drop target listbox. I am using Angular version of jqWidgets (example in Javascript version might help as well).

    html:

    <jqxListBox
    ..
    (onDragEnd)="dragEnd($event)">
    

    ts:

     dragEnd(ev) {
        ev.args.dropTargetElement.clearSelection(); // this doesn't work
      }
    
    ListBox dropTargetElement to component #104105

    Martin
    Participant

    Hello mikhaa,

    You can use the getInstance method for the component instance.
    Please, look at the following Example.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.