# Wijmo_Angular_Input.Wjitemtemplate

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjItemTemplate Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for <a href="wijmo_input.listbox.html">ListBox</a> and <a href="wijmo_input.menu.html">Menu</a> item templates.</p>
								</div>
								<p>The <b>wj-item-template</b> directive must be contained in a <a href="wijmo_angular_input.wjlistbox.html">wijmo.angular.input.WjListBox</a>
								or <a href="wijmo_angular_input.wjmenu.html">wijmo.angular.input.WjMenu</a> directives.</p>
								<p>The <b>wj-item-template</b> directive defines a template for items of <b>ListBox</b>
									and data-bound <b>Menu</b> controls.
									The template may contain an arbitrary HTML fragment with AngularJS bindings and directives.
									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>
								<p>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 ListBox control with an item template:&lt;/p&gt;
&lt;wj-list-box items-source="musicians"&gt;
    &lt;wj-item-template&gt;
        {​{$itemIndex}}. &lt;b&gt;{​{$item.name}}&lt;/b&gt;
        &lt;br /&gt;
        &lt;img ng-src="{​{$item.photo}}"/&gt;
    &lt;/wj-item-template&gt;
&lt;/wj-list-box&gt;</pre>
							</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">WjItemTemplate</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>