wijmo.angular.input Class WjMenuItem Wijmo API Class

WjMenuItem Class

AngularJS directive for menu items.

The wj-menu-item directive must be contained in a wijmo.angular.input.WjMenu directive. It supports the following attributes:

= The function to execute in the controller when the item is clicked.
= The parameter passed to the cmd function when the item is clicked.
= The value to select when the item is clicked (use either this or cmd).

The content displayed by the item may contain an arbitrary HTML fragment with AngularJS bindings and directives. You can also use ng-repeat and ng-if directives to populate the items in the Menu control. In addition to any properties available in a controller, the local $item, $itemIndex and $control template variables can be used in AngularJS bindings that refer to the data item, its index, and the owner control.


  • WjDirective
    • WjMenuItem