Get a Widget Instance
IMPORTANT
AngularJS is now in Long Term Support. You can continue to use it in existing projects but we recommend Angular, Vue, React, or another framework for new projects.
To get a widget instance, save it in a scope property once the widget is initialized:
JavaScript
function Controller ($scope) { $scope.menuInstance = {}; $scope.menuOptions = { // ... onInitialized: function (e) { $scope.menuInstance = e.component; } }; }
Alternatively, you can apply techniques from the jQuery article.
See Also
Feel free to share demo-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you!
We appreciate your feedback.
We appreciate your feedback.