# Wijmo_Angular_Input.Wjmenuitem

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjMenuItem Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for menu items.</p>
								</div>
								<p>The <b>wj-menu-item</b> directive must be contained in a <a href="wijmo_angular_input.wjmenu.html">wijmo.angular.input.WjMenu</a> directive.
								It supports the following attributes:</p>
								<dl class="dl-horizontal">
									<dt>cmd</dt>       <dd><code>=</code> The function to execute in the controller
									when the item is clicked.</dd>
									<dt>cmd-param</dt>  <dd><code>=</code> The parameter passed to the <b>cmd</b> function
									when the item is clicked.</dd>
									<dt>value</dt>     <dd><code>=</code> The value to select when the item is clicked
									(use either this or <b>cmd</b>).</dd>
								</dl>
								<p>The content displayed by the item may contain an arbitrary HTML fragment with AngularJS bindings and directives.
									You can also use <b>ng-repeat</b> and <b>ng-if</b> directives to populate the items in the Menu control.
									In addition to any properties available in a controller, the local <b>$item</b>,
									<b>$itemIndex</b> and <b>$control</b> template variables can be used in AngularJS bindings
								that refer to the data item, its index, and the owner control.</p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="tsd-signature-type">WjDirective</span>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">WjMenuItem</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>