I have multiple jqxDropDownList in the same HTML template. All of them binds to the same event handler. They must have the same behavior.
<jqxDropDownList #my1 (onChange)=’onOpenEvent($event)’ [width]=’200′ [height]=’25’ [source]=’source1’ [selectedIndex]=’1′></jqxDropDownList>
<jqxDropDownList #my2 (onChange)=’onOpenEvent($event)’ [width]=’200′ [height]=’25’ [source]=’source2’ [selectedIndex]=’1′></jqxDropDownList>
<jqxDropDownList #my3 (onChange)=’onOpenEvent($event)’ [width]=’200′ [height]=’25’ [source]=’source3’ [selectedIndex]=’1′></jqxDropDownList>
Each of them has a view child definition in the @Component Part
@ViewChild(“my1”) myDropDownList1 : jqxDropDownListComponent;
@ViewChild(“my2”) myDropDownList2 : jqxDropDownListComponent;
@ViewChild(“my3”) myDropDownList3 : jqxDropDownListComponent;
onOpenEvent(event: any): void
{
can we determine the component which triggered the event ?
I want to do something like that
this.myDropDownList1.uncheckAll();
but the component should be derived from the event controlblock
event????.uncheckAll()
}