Help us shape the 2021 DevExtreme Roadmap. Take our 5 minute survey.
Dismiss

Get a Widget Instance

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