DevExtreme jQuery - Get a Widget Instance

To get a widget instance, save it in a view model property once the widget is initialized:

JavaScript
var viewModel = {
    menuInstance: {},
    menuOptions: {
        // ...
        onInitialized: function (e) {
            viewModel.menuInstance = e.component;    
        }
    }
};

ko.applyBindings(viewModel);

Alternatively, you can apply techniques from the jQuery article.

See Also