meta-magic / amexio.github.io

Amexio is a rich set of Angular 7 (170+) components powered by HTML5 & CSS3 for Responsive Design and with 80+ Material Design Themes, UI Components, Charts, Gauges, Data Point Widgets, Dashboards. Amexio is completely Open Sourced and Free. It's based on Apache 2 License. You can use it in your production grade work today at no cost or no obligation.
http://www.amexio.tech
Apache License 2.0
167 stars 72 forks source link

onClick does not fire for amexio-drop-down-menu #119

Closed Ajitweb closed 5 years ago

Ajitweb commented 5 years ago

The onClick does not fire for

<amexio-drop-down-menu [title]="'Sample'" [icon]="'fa fa-flash'"
 (onClick)="onDropDownMenuClick($event, mainTab)">
     <amexio-drop-down-menu-item [label]="'settings'" [icon]="'fa fa-home'">
     </amexio-drop-down-menu-item>
     <amexio-drop-down-menu-item [label]="'help center'" [separator]="true">
     </amexio-drop-down-menu-item>
     <amexio-drop-down-menu-item [label]="'Language'" [icon]="'fa fa-map-marker'">
     </amexio-drop-down-menu-item>
     <amexio-drop-down-menu-item [label]="'sign out'" [icon]="'fa fa-sign-out'">
     </amexio-drop-down-menu-item>
</amexio-drop-down-menu>

But it fires for <amexio-drop-down-menu [icon-align]="'left'" [title]="'Payment option'" [data]="payment" [icon]="'fa fa-truck'" [transparent]="false" (onClick)="onDropDownMenuClick($event,mainTab)"> </amexio-drop-down-menu>

Am I missing anything?

Ajit

rashmithakkar commented 5 years ago

Hi Ajitweb, You also need to add (onClick)="onDropDownMenuClick($event)" to tag.

Please revert if you still find query