Call Methods

To call a widget method, you can apply techniques described in the Call Methods topic for jQuery.

As an alternative, you can save the widget instance in a scope property once the widget is initialized...

function Controller ($scope) {
    $scope.menuInstance = {};
    $scope.menuOptions = {
        // ...
        onInitialized: function (e) {
            $scope.menuInstance = e.component;    

... and call any method of the saved instance afterwards.

See Also
  • API Reference.WidgetName.Methods, for example, API Reference.Menu.Methods