DevExtreme jQuery/JS - Handle Events
You can subscribe to an event using a configuration property. All event handling properties are given names that begin with on.
HTML
JavaScript
<div dx-menu="{ ... onItemClick: itemClickHandler, onInitializedHandler: initializedHandler }"></div>
function Controller ($scope) { $scope.itemClickHandler = function (info) { // Handles the "itemClick" event }; $scope.menuInstance = {}; $scope.initializedHandler = function (info) { // Saves the UI component instance $scope.menuInstance = info.component; // Handles the "initialized" event } }
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.