This is a migrated thread and some comments may be shown as answers.

kendo-menu does the menu-item support a click event

1 Answer 2154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 05 Jun 2018, 03:46 PM

I was investigating the Keno-menu to replace some bootstrap menus in my Angular 6 application.  I went through all the demos but did not see that it supports any sort of click event binding.  Do I need to embed an anchor or button in a  ng-template to do this?

Unless I was missing something it seems like a pretty basic thing for a menu item to support.  I would prefer a declarative method in the Html but if there is some sort of menu event handler that I could add to the component backing the menu that would work

example of what I would have expected :

<kendo-menu>

    <kendo-menu-item text="Sign Out" (click)="signOutUser()"></kendo-menu-item>

</kendo-menu>

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Jun 2018, 08:17 AM
Hello,

The menu supports a select event that is triggered whenever an item is clicked or selected via the keyboard. A per item click handler is not currently supported.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Craig
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or