# Wijmo_Angular_Input.Wjmenu

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjMenu Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for the <a href="wijmo_input.menu.html">Menu</a> control.</p>
								</div>
								<p>Use the <b>wj-menu</b> directive to add drop-down menus to your AngularJS applications.
									Note that directive and parameter names must be formatted as lower-case with dashes
								instead of camel-case. For example:</p>
								<pre>&lt;p&gt;Here is a Menu control used as a value picker:&lt;/p&gt;
&lt;wj-menu header="Tax" value="tax"&gt;
  &lt;wj-menu-item value="0"&gt;Exempt&lt;/wj-menu-item&gt;
  &lt;wj-menu-item value=".05"&gt;5%&lt;/wj-menu-item&gt;
  &lt;wj-menu-item value=".1"&gt;10%&lt;/wj-menu-item&gt;
  &lt;wj-menu-item value=".15"&gt;15%&lt;/wj-menu-item&gt;
&lt;/wj-menu&gt;</pre>
								<p><a href="https://jsfiddle.net/Wijmo5/Wc5Mq/" target="_blank">Example</a></p>
								<p>This example creates three <b>Menu</b> controls. The first is used as a value picker,
									the second uses a list of commands with parameters, and the third is a group of
								three menus handled by an <b>itemClicked</b> function in the controller.</p>
								<p>The <b>wj-menu</b> directive extends <a href="wijmo_angular_input.wjcombobox.html">wijmo.angular.input.WjComboBox</a> with the following attributes:</p>
								<dl class="dl-horizontal">
									<dt>command-path</dt>          <dd><code>@</code> The command to be executed when the item is clicked.</dd>
									<dt>command-parameter-path</dt><dd><code>@</code> The name of the property that contains command parameters.</dd>
									<dt>header</dt>                <dd><code>@</code> The text shown on the control.</dd>
									<dt>is-button</dt>             <dd><code>@</code> Whether the menu should react to clicks on its header area.</dd>
									<dt>value</dt>                 <dd><code>@</code> The value of the selected <b>wj-menu-item</b> value property. </dd>
									<dt>item-clicked</dt>          <dd><code>&amp;</code> The <a href="wijmo_input.menu.html#itemclicked">Menu.itemClicked</a> event handler.</dd>
									<dt>got-focus</dt>             <dd><code>&amp;</code> The <a href="wijmo_input.menu.html#gotfocus">Menu.gotFocus</a> event handler.</dd>
									<dt>lost-focus</dt>            <dd><code>&amp;</code> The <a href="wijmo_input.menu.html#lostfocus">Menu.lostFocus</a> event handler.</dd>
								</dl>
								<p>The <b>wj-menu</b> directive may contain the following child directives:
								<a href="wijmo_angular_input.wjmenuitem.html">wijmo.angular.input.WjMenuItem</a>, <a href="wijmo_angular_input.wjmenuseparator.html">wijmo.angular.input.WjMenuSeparator</a> and <a href="wijmo_angular_input.wjitemtemplate.html">wijmo.angular.input.WjItemTemplate</a>(in case of data-bound Menu control).</p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<a href="wijmo_angular_input.wjcombobox.html" class="tsd-signature-type">WjComboBox</a>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">WjMenu</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>