# Wijmo_Angular_Input.Wjlistbox

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjListBox Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for the <a href="wijmo_input.listbox.html">ListBox</a> control.</p>
								</div>
								<p>Use the <b>wj-list-box</b> directive to add <a href="wijmo_input.listbox.html">ListBox</a> controls 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>b&gt;Here is a ListBox control:&lt;/p&gt;
&lt;wj-list-box
  selected-item="theCountry"
  items-source="countries"
  placeholder="country"&gt;
&lt;/wj-list-box&gt;</pre>
								<p>The example below creates a <b>ListBox</b> control and binds it to a 'countries' array
									exposed by the controller. The value selected is bound to the 'theCountry'
								controller property using the <b>selected-item</b> attribute.</p>
								<p><a href="https://jsfiddle.net/Wijmo5/37GHw/" target="_blank">Example</a></p>
								<p>The <b>wj-list-box</b> directive supports the following attributes:</p>
								<dl class="dl-horizontal">
									<dt>ng-model</dt>      <dd><code>@</code> Binds the control's <b>selectedValue</b> property using the ng-model Angular
										directive. Binding the property using the ng-model directive provides standard benefits
										like validation, adding the control's state to the form instance, and so on. To redefine
										properties on a control that is bound by the ng-model directive, use the wj-model-property
									attribute.</dd>
									<dt>wj-model-property</dt>  <dd><code>@</code> Specifies a control property that is bound to a scope using the
									<b>ng-model</b> directive.</dd>
									<dt>control</dt>              <dd><code>=</code> A reference to the <a href="wijmo_input.listbox.html">ListBox</a>
									control created by this directive.</dd>
									<dt>display-member-path</dt>  <dd><code>@</code> The property to use as the visual
									representation of the items.</dd>
									<dt>is-content-html</dt>      <dd><code>@</code> A value indicating whether items
									contain plain text or HTML.</dd>
									<dt>initialized</dt>          <dd><code>&amp;</code> This event occurs after the binding has finished
									initializing the control with attribute values.</dd>
									<dt>is-initialized</dt>       <dd><code>=</code> A value indicating whether the binding has finished
									initializing the control with attribute values. </dd>
									<dt>item-formatter</dt>       <dd><code>=</code> A function used to customize the
									values to show in the list.</dd>
									<dt>items-source</dt>         <dd><code>=</code> An array or <a href="../interfaces/wijmo.icollectionview.html">ICollectionView</a>
									that contains the list items.</dd>
									<dt>max-height</dt>           <dd><code>@</code> The maximum height of the list.</dd>
									<dt>selected-index</dt>       <dd><code>=</code> The index of the currently selected
									item.</dd>
									<dt>selected-item</dt>        <dd><code>=</code> The item that is currently selected.</dd>
									<dt>selected-value</dt>       <dd><code>=</code> The value of the <b>selected-item</b>
									obtained using the <b>selected-value-path</b>.</dd>
									<dt>selected-value-path</dt>  <dd><code>@</code> The property used to get the
									<b>selected-value</b> from the <b>selected-item</b>.</dd>
									<dt>got-focus</dt>            <dd><code>&amp;</code> The <a href="wijmo_input.listbox.html#gotfocus">ListBox.gotFocus</a> event handler.</dd>
									<dt>lost-focus</dt>           <dd><code>&amp;</code> The <a href="wijmo_input.listbox.html#lostfocus">ListBox.lostFocus</a> event handler.</dd>
									<dt>items-changed</dt>        <dd><code>&amp;</code> The <a href="wijmo_input.listbox.html#itemschanged">ListBox.itemsChanged</a> event handler.</dd>
									<dt>selected-index-changed</dt> <dd><code>&amp;</code> The <a href="wijmo_input.listbox.html#selectedindexchanged">ListBox.selectedIndexChanged</a> event handler.</dd>
								</dl>
								<p>The <b>wj-list-box</b> directive may contain <a href="wijmo_angular_input.wjitemtemplate.html">wijmo.angular.input.WjItemTemplate</a> child directive.</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">WjListBox</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>